update 微信sdk相关说明
parent
b38cb30e94
commit
21703c60d8
|
@ -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 = "<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>"; };
|
||||
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>"; };
|
||||
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>"; };
|
||||
|
@ -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 */,
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -25,18 +25,5 @@
|
|||
<string>SM</string>
|
||||
</dict>
|
||||
</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>
|
||||
</plist>
|
||||
|
|
Loading…
Reference in New Issue