Commit 4c7cd90d212e4f4d28ab00692ae35aa75b76fef1
1 parent
4d882ee7bd
Exists in
master
增加第三方支付完成回调,版本v3.3.11
Showing 4 changed files with 4 additions and 2 deletions Side-by-side Diff
ios/GameSDK.framework/Versions/A/GameSDK
No preview for this file type
ios/GameSDK.framework/Versions/A/Headers/LetsGameAPI.h
... | ... | @@ -47,7 +47,7 @@ static NSString *version = @"3.3.10"; |
47 | 47 | - (BOOL)handleOpenURL:(NSURL *)url |
48 | 48 | sourceApplication:(NSString *)sourceApplication; |
49 | 49 | |
50 | --(void)pay:(NSDictionary*) payInfo; | |
50 | +-(void)pay:(NSDictionary*) payInfo handleCallBack:(void (^)()) paySuccessCallback; | |
51 | 51 | |
52 | 52 | -(void)iap:(NSDictionary*) payInfo forUser:(NSString*) uid handleCallback:(void (^)(NSString* orderId)) callback; |
53 | 53 |
ios/GameSDKDemo/GameSDKDemo.xcodeproj/project.xcworkspace/xcuserdata/yanglele.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type
ios/GameSDKDemo/letsgameDemo/LSGMainViewController.m
... | ... | @@ -121,7 +121,9 @@ |
121 | 121 | [payInfo setValue:@"ios demo" forKey:@"extraInfo"]; |
122 | 122 | [payInfo setValue:@"元宝" forKey:@"product"]; |
123 | 123 | [payInfo setValue:self.sessionKey forKey:@"sessionKey"]; |
124 | - [[LetsGameAPI instance] pay:payInfo]; | |
124 | + [[LetsGameAPI instance] pay:payInfo handleCallBack:^{ | |
125 | + NSLog(@"第三方支付完成"); | |
126 | + }]; | |
125 | 127 | } |
126 | 128 | |
127 | 129 | -(void)onIapTest{ |