feat:ios自定义api回调时,增加对错误情况的判断
parent
28a088c33f
commit
d9445020f6
|
@ -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-08-13 09:53:09.007824","version":"2.2.2"}
|
{"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-08-19 15:38:17.756101","version":"2.2.2"}
|
|
@ -87,7 +87,7 @@ packages:
|
||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "2.33.5"
|
version: "2.33.3"
|
||||||
path:
|
path:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -22,12 +22,12 @@
|
||||||
NSString* api = [@"extensionApi:" stringByAppendingString:self.name];
|
NSString* api = [@"extensionApi:" stringByAppendingString:self.name];
|
||||||
[channel invokeMethod:api arguments:param result:^(id _Nullable result) {
|
[channel invokeMethod:api arguments:param result:^(id _Nullable result) {
|
||||||
NSLog(@"extensionApi reslut:%@",result);
|
NSLog(@"extensionApi reslut:%@",result);
|
||||||
if([result isKindOfClass:[FlutterError class]] || result == FlutterMethodNotImplemented)
|
BOOL isFlutterError = [result isKindOfClass:[FlutterError class]] || result == FlutterMethodNotImplemented;
|
||||||
{
|
BOOL hasError = [[result allKeys] containsObject:@"errMsg"];
|
||||||
|
if (isFlutterError || hasError) {
|
||||||
NSLog(@"extensionApi reslut:fail");
|
NSLog(@"extensionApi reslut:fail");
|
||||||
callback(FATExtensionCodeFailure,nil);
|
callback(FATExtensionCodeFailure,nil);
|
||||||
}else
|
} else {
|
||||||
{
|
|
||||||
NSLog(@"extensionApi callback:%@",result);
|
NSLog(@"extensionApi callback:%@",result);
|
||||||
callback(FATExtensionCodeSuccess,result);
|
callback(FATExtensionCodeSuccess,result);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.33.3'
|
s.dependency 'FinApplet' , '2.34.0-alpha20210819v02'
|
||||||
s.dependency 'FinAppletExt' , '2.33.3'
|
s.dependency 'FinAppletExt' , '2.34.0-alpha20210819v02'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue