|
@@ -105,13 +105,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
+ //@"http://mobile.umeng.com/social"
|
|
|
+ [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_WechatSession appKey:@"wx0e6a5b18f4cfd10d" appSecret:@"b9a93038b7481278f7a0e048c0d81770" redirectURL:nil];
|
|
|
|
|
|
- [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_WechatSession appKey:@"wx0e6a5b18f4cfd10d" appSecret:@"b9a93038b7481278f7a0e048c0d81770" redirectURL:@"http://mobile.umeng.com/social"];
|
|
|
-
|
|
|
- //MYFVJZhtygWy5hzh 秘钥 1106703118
|
|
|
- [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_QQ appKey:@"1106734232"/*设置QQ平台的appID*/ appSecret:nil redirectURL:@"http://mobile.umeng.com/social"];
|
|
|
+ //MYFVJZhtygWy5hzh 秘钥 1106703118 @"http://mobile.umeng.com/social"
|
|
|
+ [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_QQ appKey:@"1106734232"/*设置QQ平台的appID*/ appSecret:nil redirectURL:nil];
|
|
|
|
|
|
|
|
|
+ //微信平台
|
|
|
[WXApi registerApp:@"wx0e6a5b18f4cfd10d" universalLink:@"https://www.jianyu360.cn/"];
|
|
|
|
|
|
}
|
|
@@ -478,29 +479,29 @@ didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken{
|
|
|
#pragma mark 微信支付代理方法
|
|
|
-(void)onResp:(BaseResp*)resp{
|
|
|
NSLog(@"收到 微信 回执");
|
|
|
-// if ([resp isKindOfClass:[PayResp class]]){
|
|
|
-// PayResp*response=(PayResp*)resp;
|
|
|
-// NSString *paystatus =@"";
|
|
|
-// switch(response.errCode){
|
|
|
-// case WXSuccess:
|
|
|
-// paystatus = @"1";
|
|
|
-// NSLog(@"微信支付成功");
|
|
|
-// break;
|
|
|
-//
|
|
|
-// case WXErrCodeUserCancel:
|
|
|
-// paystatus = @"0";
|
|
|
-// NSLog(@"微信支付取消");
|
|
|
-// break;
|
|
|
-//
|
|
|
-// default:
|
|
|
-// paystatus = @"-1";
|
|
|
-// NSLog(@"微信支付失败");
|
|
|
-// break;
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-// [[NSNotificationCenter defaultCenter] postNotificationName:AlipayWXpayStatus object:paystatus userInfo:nil];
|
|
|
-// }
|
|
|
+ if ([resp isKindOfClass:[PayResp class]]){
|
|
|
+ PayResp*response=(PayResp*)resp;
|
|
|
+ NSString *paystatus =@"";
|
|
|
+ switch(response.errCode){
|
|
|
+ case WXSuccess:
|
|
|
+ paystatus = @"1";
|
|
|
+ NSLog(@"微信支付成功");
|
|
|
+ break;
|
|
|
+
|
|
|
+ case WXErrCodeUserCancel:
|
|
|
+ paystatus = @"0";
|
|
|
+ NSLog(@"微信支付取消");
|
|
|
+ break;
|
|
|
+
|
|
|
+ default:
|
|
|
+ paystatus = @"-1";
|
|
|
+ NSLog(@"微信支付失败");
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ [[NSNotificationCenter defaultCenter] postNotificationName:AlipayWXpayStatus object:paystatus userInfo:nil];
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|