|
@@ -416,12 +416,19 @@ NSString *const new_AesKey_1 = @"mGlAgnIBB8bx2nch";
|
|
}];
|
|
}];
|
|
}
|
|
}
|
|
-(void)executeCallJS:(NSString *)jsStr {
|
|
-(void)executeCallJS:(NSString *)jsStr {
|
|
- NSLog(@"OC调JS交互%@:",jsStr);
|
|
|
|
- [_webView evaluateJavaScript:jsStr completionHandler:^(id _Nullable result, NSError * _Nullable error) {
|
|
|
|
- if (error!=nil) {
|
|
|
|
- [[LXViewControllerManager shareViewControllerManager]showAlertViewWithMessage: jsStr];
|
|
|
|
- }
|
|
|
|
- }];
|
|
|
|
|
|
+
|
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.15 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
|
+ NSLog(@"OC调JS交互%@:",jsStr);
|
|
|
|
+ [_webView evaluateJavaScript:jsStr completionHandler:^(id _Nullable result, NSError * _Nullable error) {
|
|
|
|
+ if (error!=nil) {
|
|
|
|
+ NSLog(@"result:%@,error:%@",result,error);
|
|
|
|
+ [[LXViewControllerManager shareViewControllerManager]showAlertViewWithMessage: jsStr];
|
|
|
|
+ }
|
|
|
|
+ }];
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|