feat:ios自定义api回调时,增加对错误情况的判断

master
jizelin 2021-08-20 16:39:39 +08:00
parent 28a088c33f
commit d9445020f6
4 changed files with 8 additions and 8 deletions

View File

@ -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"}

View File

@ -87,7 +87,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.33.5"
version: "2.33.3"
path:
dependency: transitive
description:

View File

@ -22,12 +22,12 @@
NSString* api = [@"extensionApi:" stringByAppendingString:self.name];
[channel invokeMethod:api arguments:param result:^(id _Nullable 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");
callback(FATExtensionCodeFailure,nil);
}else
{
} else {
NSLog(@"extensionApi callback:%@",result);
callback(FATExtensionCodeSuccess,result);
}

View File

@ -17,7 +17,7 @@ A finclip miniprogram flutter sdk.
s.dependency 'Flutter'
s.ios.deployment_target = '9.0'
s.dependency 'FinApplet' , '2.33.3'
s.dependency 'FinAppletExt' , '2.33.3'
s.dependency 'FinApplet' , '2.34.0-alpha20210819v02'
s.dependency 'FinAppletExt' , '2.34.0-alpha20210819v02'
end