iOS 做 微信支付,微信登陆,支付宝支付,qq登录回调冲突解决

解决方法

在AppDelegate.m中

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url

sourceApplication:(NSString *)sourceApplication annotation:(id)annotation

{



if ([url.host isEqualToString:@"safepay"]) {

//支付宝回调

[Alipay aliPayParse:url];

return  YES;

}

if ([sourceApplication isEqualToString:@"com.tencent.xin"]) {

//微信支付回调

return [RCTLinkingManager application:application openURL:url

sourceApplication:sourceApplication annotation:annotation];

}

if ([sourceApplication isEqualToString:@"com.tencent.mqq"]) {

//qq回调

return [RCTLinkingManager application:application openURL:url

sourceApplication:sourceApplication annotation:annotation];

}

return  NO;

}

 

你可能感兴趣的:(iOS 做 微信支付,微信登陆,支付宝支付,qq登录回调冲突解决)