xuguohong

haibao udapte

No preview for this file type
No preview for this file type
No preview for this file type
......@@ -226,22 +226,16 @@ int mExchange;
[self handlerLeakOrder];
});
NSString *isOpenThirdPay = [payInfo isOpenThirdPay];
NSLog(@"custom%@",[payInfo custom]);
if([isOpenThirdPay isEqualToString:@"false"]){
NSString* products = [payInfo products];
//NSLog(@"products:%@",products);
[[YouaiSDKMgr getInstance] openApplePay:self.controller products:products amount:[payInfo postAmount] queryId:queryId];
}else{
//NSString *isOpenThirdPay = [payInfo isOpenThirdPay];
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[YouaiSDKMgr getInstance] openPay:serverId :roleName :amount :[payInfo queryId] :self.controller];
}else{
NSString* products = [payInfo products];
[[YouaiSDKMgr getInstance] openApplePay:self.controller products:products amount:[payInfo postAmount] productName:[payInfo productName] queryId:queryId];
}
int64_t delayInSeconds = 5.0; // 延迟的时间
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
NSLog(@"chage state");
[[PoolChecker getInstance] setOnlyOneTimePay:false];
});
}
-(void)paymentSuccess:(NSString *)accountId orderId:(NSString *)orderId currencyAmount:(double)amount currencyType:(NSString *)currencyType payType:(NSString *)payType custom:(NSArray *)customArray
......
......@@ -226,22 +226,16 @@ int mExchange;
[self handlerLeakOrder];
});
NSString *isOpenThirdPay = [payInfo isOpenThirdPay];
NSLog(@"custom%@",[payInfo custom]);
if([isOpenThirdPay isEqualToString:@"false"]){
NSString* products = [payInfo products];
//NSLog(@"products:%@",products);
[[YouaiSDKMgr getInstance] openApplePay:self.controller products:products amount:[payInfo postAmount] queryId:queryId];
}else{
//NSString *isOpenThirdPay = [payInfo isOpenThirdPay];
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[YouaiSDKMgr getInstance] openPay:serverId :roleName :amount :[payInfo queryId] :self.controller];
}else{
NSString* products = [payInfo products];
[[YouaiSDKMgr getInstance] openApplePay:self.controller products:products amount:[payInfo postAmount] productName:[payInfo productName] queryId:queryId];
}
int64_t delayInSeconds = 5.0; // 延迟的时间
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
NSLog(@"chage state");
[[PoolChecker getInstance] setOnlyOneTimePay:false];
});
}
-(void)paymentSuccess:(NSString *)accountId orderId:(NSString *)orderId currencyAmount:(double)amount currencyType:(NSString *)currencyType payType:(NSString *)payType custom:(NSArray *)customArray
......