修改扫码后打开小程序延迟,尝试解决有时打不开小程序问题
parent
e6f9939587
commit
bf84d64d64
|
@ -1 +1 @@
|
||||||
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"mop","path":"/Users/beetle/Desktop/finogeeks/gitlab/finosprite/finclip-flutter-sdk/","dependencies":[]}],"android":[{"name":"mop","path":"/Users/beetle/Desktop/finogeeks/gitlab/finosprite/finclip-flutter-sdk/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"mop","dependencies":[]}],"date_created":"2021-06-09 21:47:48.185375","version":"2.0.3"}
|
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"mop","path":"/Users/beetle/Desktop/finogeeks/gitlab/finosprite/finclip-flutter-sdk/","dependencies":[]}],"android":[{"name":"mop","path":"/Users/beetle/Desktop/finogeeks/gitlab/finosprite/finclip-flutter-sdk/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"mop","dependencies":[]}],"date_created":"2021-06-15 22:42:21.602758","version":"2.0.3"}
|
|
@ -15,8 +15,8 @@
|
||||||
NSLog(@"MOP_scanOpenApplet:%@", self.info);
|
NSLog(@"MOP_scanOpenApplet:%@", self.info);
|
||||||
FATAppletDecryptRequest *req = [[FATAppletDecryptRequest alloc] init];
|
FATAppletDecryptRequest *req = [[FATAppletDecryptRequest alloc] init];
|
||||||
req.info = self.info;
|
req.info = self.info;
|
||||||
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||||
UIViewController *currentVC = [MOPTools topViewController];
|
UIViewController *currentVC = [MOPTools topViewController];
|
||||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.25 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
||||||
[[FATClient sharedClient] startAppletWithDecryptRequest:req InParentViewController:currentVC completion:^(BOOL result, FATError *error) {
|
[[FATClient sharedClient] startAppletWithDecryptRequest:req InParentViewController:currentVC completion:^(BOOL result, FATError *error) {
|
||||||
NSLog(@"打开小程序:%@", error);
|
NSLog(@"打开小程序:%@", error);
|
||||||
} closeCompletion:^{
|
} closeCompletion:^{
|
||||||
|
|
|
@ -17,7 +17,7 @@ A finclip miniprogram flutter sdk.
|
||||||
s.dependency 'Flutter'
|
s.dependency 'Flutter'
|
||||||
s.ios.deployment_target = '9.0'
|
s.ios.deployment_target = '9.0'
|
||||||
|
|
||||||
s.dependency 'FinApplet' , '2.30.0-alpha20210611v01'
|
s.dependency 'FinApplet' , '2.30.0-alpha20210615v09'
|
||||||
s.dependency 'FinAppletExt' , '2.30.0-alpha20210611v01'
|
s.dependency 'FinAppletExt' , '2.30.0-alpha20210615v09'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue