From 21703c60d89ae77c297e1af6daed9f608ab9f76b Mon Sep 17 00:00:00 2001 From: wanghualei Date: Tue, 7 Mar 2023 14:10:33 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=BE=AE=E4=BF=A1sdk=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo.xcodeproj/project.pbxproj | 4 ---- demo/AppDelegate.m | 2 +- demo/Common/FINExtensionHelper.m | 5 ++++- demo/servers.plist | 13 ------------- 4 files changed, 5 insertions(+), 19 deletions(-) diff --git a/demo.xcodeproj/project.pbxproj b/demo.xcodeproj/project.pbxproj index 30f70a4..c72999f 100644 --- a/demo.xcodeproj/project.pbxproj +++ b/demo.xcodeproj/project.pbxproj @@ -13,7 +13,6 @@ 9DD565CC23EC450A0011FC4A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9DD565CA23EC450A0011FC4A /* LaunchScreen.storyboard */; }; 9DD565CF23EC450A0011FC4A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9DD565CE23EC450A0011FC4A /* main.m */; }; A0E041B926CE6DAD00D58D47 /* demo.plist in Resources */ = {isa = PBXBuildFile; fileRef = A0E041B826CE6DAD00D58D47 /* demo.plist */; }; - A0E041BB26CE6E1F00D58D47 /* finosprite.plist in Resources */ = {isa = PBXBuildFile; fileRef = A0E041BA26CE6E1F00D58D47 /* finosprite.plist */; }; A0E041BD26CE720900D58D47 /* servers.plist in Resources */ = {isa = PBXBuildFile; fileRef = A0E041BC26CE720900D58D47 /* servers.plist */; }; A823321F258C3B7000C1B2D5 /* FINDemoClientHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = A823321D258C3B7000C1B2D5 /* FINDemoClientHelper.m */; }; A863B745257A09A300959AA1 /* FINExtensionHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = A863B744257A09A300959AA1 /* FINExtensionHelper.m */; }; @@ -36,7 +35,6 @@ 9DD565CD23EC450A0011FC4A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 9DD565CE23EC450A0011FC4A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; A0E041B826CE6DAD00D58D47 /* demo.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = demo.plist; sourceTree = ""; }; - A0E041BA26CE6E1F00D58D47 /* finosprite.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = finosprite.plist; sourceTree = ""; }; A0E041BC26CE720900D58D47 /* servers.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = servers.plist; sourceTree = ""; }; A823321D258C3B7000C1B2D5 /* FINDemoClientHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FINDemoClientHelper.m; sourceTree = ""; }; A823321E258C3B7000C1B2D5 /* FINDemoClientHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FINDemoClientHelper.h; sourceTree = ""; }; @@ -97,7 +95,6 @@ 9DD565CD23EC450A0011FC4A /* Info.plist */, 9DD565CE23EC450A0011FC4A /* main.m */, A0E041B826CE6DAD00D58D47 /* demo.plist */, - A0E041BA26CE6E1F00D58D47 /* finosprite.plist */, A0E041BC26CE720900D58D47 /* servers.plist */, ); path = demo; @@ -221,7 +218,6 @@ buildActionMask = 2147483647; files = ( 9DD565CC23EC450A0011FC4A /* LaunchScreen.storyboard in Resources */, - A0E041BB26CE6E1F00D58D47 /* finosprite.plist in Resources */, A0E041B926CE6DAD00D58D47 /* demo.plist in Resources */, 9DD565C923EC450A0011FC4A /* Assets.xcassets in Resources */, A0E041BD26CE720900D58D47 /* servers.plist in Resources */, diff --git a/demo/AppDelegate.m b/demo/AppDelegate.m index d8f11e8..bedeaf6 100644 --- a/demo/AppDelegate.m +++ b/demo/AppDelegate.m @@ -25,7 +25,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. - // servers.plist维护了不同应用,初始化finclip的参数(因为微信支付需要绑定一个可用的账号) NSString *bundleId = [NSBundle mainBundle].bundleIdentifier; NSString *path = [[NSBundle mainBundle] pathForResource:@"servers" ofType:@"plist"]; NSDictionary *servers = [NSDictionary dictionaryWithContentsOfFile:path]; @@ -59,6 +58,7 @@ // [FATGDMapComponent setGDMapAppKey:@"申请的key"]; // 注册微信SDK + // 调试微信登录和微信支付时,需要修改bundleId,并配置跟bundleId匹配的微信 appKey、universalLink // [WXApi registerApp:@"微信开放sdk的key" universalLink:@"微信开放sdk的universalLink"]; self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; diff --git a/demo/Common/FINExtensionHelper.m b/demo/Common/FINExtensionHelper.m index d3809f8..5a2bc9d 100644 --- a/demo/Common/FINExtensionHelper.m +++ b/demo/Common/FINExtensionHelper.m @@ -97,7 +97,10 @@ static FINExtensionHelper *instance = nil; #pragma mark - WXPay // 模拟向服务请求支付订单 - (void)getTestPayment:(FATExtensionApiCallback)callback { - // 以下支持示例代码,演示自行实现的过程 + // 以下只是示例代码,演示自行实现的过程 + // 1.请求自己业务后台的订单信息 + // 2.调用app的微信支付功能支付 + // 3.返回支付结果给小程序 NSString *urlString = @"https://finclip-testing.finogeeks.club/mop/wechat-auth/api/order"; NSURL *url = [NSURL URLWithString:urlString]; NSMutableURLRequest *requset = [NSMutableURLRequest requestWithURL:url]; diff --git a/demo/servers.plist b/demo/servers.plist index 2d7638b..4d1f1f9 100644 --- a/demo/servers.plist +++ b/demo/servers.plist @@ -25,18 +25,5 @@ SM - com.finogeeks.mop.finosprite - - - appKey - 22LyZEib0gLTQdU3MUauAQVLIkNNhTSGIN42gXzlAsk= - appSecret - ae55433be2f62915 - apiServer - https://finchat-mop-b.finogeeks.club - cryptType - SM - -