update 微信sdk相关说明
parent
b38cb30e94
commit
21703c60d8
|
@ -13,7 +13,6 @@
|
||||||
9DD565CC23EC450A0011FC4A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9DD565CA23EC450A0011FC4A /* LaunchScreen.storyboard */; };
|
9DD565CC23EC450A0011FC4A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9DD565CA23EC450A0011FC4A /* LaunchScreen.storyboard */; };
|
||||||
9DD565CF23EC450A0011FC4A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9DD565CE23EC450A0011FC4A /* main.m */; };
|
9DD565CF23EC450A0011FC4A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9DD565CE23EC450A0011FC4A /* main.m */; };
|
||||||
A0E041B926CE6DAD00D58D47 /* demo.plist in Resources */ = {isa = PBXBuildFile; fileRef = A0E041B826CE6DAD00D58D47 /* demo.plist */; };
|
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 */; };
|
A0E041BD26CE720900D58D47 /* servers.plist in Resources */ = {isa = PBXBuildFile; fileRef = A0E041BC26CE720900D58D47 /* servers.plist */; };
|
||||||
A823321F258C3B7000C1B2D5 /* FINDemoClientHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = A823321D258C3B7000C1B2D5 /* FINDemoClientHelper.m */; };
|
A823321F258C3B7000C1B2D5 /* FINDemoClientHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = A823321D258C3B7000C1B2D5 /* FINDemoClientHelper.m */; };
|
||||||
A863B745257A09A300959AA1 /* FINExtensionHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = A863B744257A09A300959AA1 /* FINExtensionHelper.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 = "<group>"; };
|
9DD565CD23EC450A0011FC4A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
9DD565CE23EC450A0011FC4A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
9DD565CE23EC450A0011FC4A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
||||||
A0E041B826CE6DAD00D58D47 /* demo.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = demo.plist; sourceTree = "<group>"; };
|
A0E041B826CE6DAD00D58D47 /* demo.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = demo.plist; sourceTree = "<group>"; };
|
||||||
A0E041BA26CE6E1F00D58D47 /* finosprite.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = finosprite.plist; sourceTree = "<group>"; };
|
|
||||||
A0E041BC26CE720900D58D47 /* servers.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = servers.plist; sourceTree = "<group>"; };
|
A0E041BC26CE720900D58D47 /* servers.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = servers.plist; sourceTree = "<group>"; };
|
||||||
A823321D258C3B7000C1B2D5 /* FINDemoClientHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FINDemoClientHelper.m; sourceTree = "<group>"; };
|
A823321D258C3B7000C1B2D5 /* FINDemoClientHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FINDemoClientHelper.m; sourceTree = "<group>"; };
|
||||||
A823321E258C3B7000C1B2D5 /* FINDemoClientHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FINDemoClientHelper.h; sourceTree = "<group>"; };
|
A823321E258C3B7000C1B2D5 /* FINDemoClientHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FINDemoClientHelper.h; sourceTree = "<group>"; };
|
||||||
|
@ -97,7 +95,6 @@
|
||||||
9DD565CD23EC450A0011FC4A /* Info.plist */,
|
9DD565CD23EC450A0011FC4A /* Info.plist */,
|
||||||
9DD565CE23EC450A0011FC4A /* main.m */,
|
9DD565CE23EC450A0011FC4A /* main.m */,
|
||||||
A0E041B826CE6DAD00D58D47 /* demo.plist */,
|
A0E041B826CE6DAD00D58D47 /* demo.plist */,
|
||||||
A0E041BA26CE6E1F00D58D47 /* finosprite.plist */,
|
|
||||||
A0E041BC26CE720900D58D47 /* servers.plist */,
|
A0E041BC26CE720900D58D47 /* servers.plist */,
|
||||||
);
|
);
|
||||||
path = demo;
|
path = demo;
|
||||||
|
@ -221,7 +218,6 @@
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
9DD565CC23EC450A0011FC4A /* LaunchScreen.storyboard in Resources */,
|
9DD565CC23EC450A0011FC4A /* LaunchScreen.storyboard in Resources */,
|
||||||
A0E041BB26CE6E1F00D58D47 /* finosprite.plist in Resources */,
|
|
||||||
A0E041B926CE6DAD00D58D47 /* demo.plist in Resources */,
|
A0E041B926CE6DAD00D58D47 /* demo.plist in Resources */,
|
||||||
9DD565C923EC450A0011FC4A /* Assets.xcassets in Resources */,
|
9DD565C923EC450A0011FC4A /* Assets.xcassets in Resources */,
|
||||||
A0E041BD26CE720900D58D47 /* servers.plist in Resources */,
|
A0E041BD26CE720900D58D47 /* servers.plist in Resources */,
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||||
// Override point for customization after application launch.
|
// Override point for customization after application launch.
|
||||||
|
|
||||||
// servers.plist维护了不同应用,初始化finclip的参数(因为微信支付需要绑定一个可用的账号)
|
|
||||||
NSString *bundleId = [NSBundle mainBundle].bundleIdentifier;
|
NSString *bundleId = [NSBundle mainBundle].bundleIdentifier;
|
||||||
NSString *path = [[NSBundle mainBundle] pathForResource:@"servers" ofType:@"plist"];
|
NSString *path = [[NSBundle mainBundle] pathForResource:@"servers" ofType:@"plist"];
|
||||||
NSDictionary *servers = [NSDictionary dictionaryWithContentsOfFile:path];
|
NSDictionary *servers = [NSDictionary dictionaryWithContentsOfFile:path];
|
||||||
|
@ -59,6 +58,7 @@
|
||||||
// [FATGDMapComponent setGDMapAppKey:@"申请的key"];
|
// [FATGDMapComponent setGDMapAppKey:@"申请的key"];
|
||||||
|
|
||||||
// 注册微信SDK
|
// 注册微信SDK
|
||||||
|
// 调试微信登录和微信支付时,需要修改bundleId,并配置跟bundleId匹配的微信 appKey、universalLink
|
||||||
// [WXApi registerApp:@"微信开放sdk的key" universalLink:@"微信开放sdk的universalLink"];
|
// [WXApi registerApp:@"微信开放sdk的key" universalLink:@"微信开放sdk的universalLink"];
|
||||||
|
|
||||||
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
||||||
|
|
|
@ -97,7 +97,10 @@ static FINExtensionHelper *instance = nil;
|
||||||
#pragma mark - WXPay
|
#pragma mark - WXPay
|
||||||
// 模拟向服务请求支付订单
|
// 模拟向服务请求支付订单
|
||||||
- (void)getTestPayment:(FATExtensionApiCallback)callback {
|
- (void)getTestPayment:(FATExtensionApiCallback)callback {
|
||||||
// 以下支持示例代码,演示自行实现的过程
|
// 以下只是示例代码,演示自行实现的过程
|
||||||
|
// 1.请求自己业务后台的订单信息
|
||||||
|
// 2.调用app的微信支付功能支付
|
||||||
|
// 3.返回支付结果给小程序
|
||||||
NSString *urlString = @"https://finclip-testing.finogeeks.club/mop/wechat-auth/api/order";
|
NSString *urlString = @"https://finclip-testing.finogeeks.club/mop/wechat-auth/api/order";
|
||||||
NSURL *url = [NSURL URLWithString:urlString];
|
NSURL *url = [NSURL URLWithString:urlString];
|
||||||
NSMutableURLRequest *requset = [NSMutableURLRequest requestWithURL:url];
|
NSMutableURLRequest *requset = [NSMutableURLRequest requestWithURL:url];
|
||||||
|
|
|
@ -25,18 +25,5 @@
|
||||||
<string>SM</string>
|
<string>SM</string>
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>com.finogeeks.mop.finosprite</key>
|
|
||||||
<array>
|
|
||||||
<dict>
|
|
||||||
<key>appKey</key>
|
|
||||||
<string>22LyZEib0gLTQdU3MUauAQVLIkNNhTSGIN42gXzlAsk=</string>
|
|
||||||
<key>appSecret</key>
|
|
||||||
<string>ae55433be2f62915</string>
|
|
||||||
<key>apiServer</key>
|
|
||||||
<string>https://finchat-mop-b.finogeeks.club</string>
|
|
||||||
<key>cryptType</key>
|
|
||||||
<string>SM</string>
|
|
||||||
</dict>
|
|
||||||
</array>
|
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
Loading…
Reference in New Issue