@kafudev/react-native-alibc
Advanced tools
+6
-11
@@ -165,3 +165,3 @@ // | ||
| NSInteger res = [[AlibcTradeSDK sharedInstance].tradeService | ||
| openByUrl:param[@"url"] | ||
| openByUrl:(NSString *)param[@"url"] | ||
| identity:@"trade" | ||
@@ -184,2 +184,4 @@ webView:view.webView | ||
| [appRootVC presentViewController:view animated:YES completion:nil]; | ||
| NSDictionary *ret = @{@"code": @1, @"msg":@"打开成功"}; | ||
| resolve(ret); | ||
| } | ||
@@ -235,3 +237,6 @@ return; | ||
| [appRootVC presentViewController:view animated:YES completion:nil]; | ||
| NSDictionary *ret = @{@"code": @1, @"msg":@"打开成功"}; | ||
| resolve(ret); | ||
| } | ||
| return; | ||
| } | ||
@@ -251,12 +256,2 @@ | ||
| - (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts { | ||
| [URLContexts enumerateObjectsUsingBlock:^(UIOpenURLContext * _Nonnull obj, | ||
| BOOL * _Nonnull stop) { | ||
| if([[AlibcTradeSDK sharedInstance] application:nil | ||
| openURL:obj.URL | ||
| options:nil]){ | ||
| *stop = YES; | ||
| } | ||
| }]; | ||
| } | ||
| @end |
+1
-1
| { | ||
| "name": "@kafudev/react-native-alibc", | ||
| "version": "0.1.11", | ||
| "version": "0.1.12", | ||
| "description": "阿里百川sdk", | ||
@@ -5,0 +5,0 @@ "main": "lib/commonjs/index", |
4489241
-0.01%