From d9445020f618876907215d9535a193ad7e0c23f7 Mon Sep 17 00:00:00 2001 From: jizelin Date: Fri, 20 Aug 2021 16:39:39 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9Aios=E8=87=AA=E5=AE=9A=E4=B9=89api?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E6=97=B6=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=AF=B9?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=83=85=E5=86=B5=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/.flutter-plugins-dependencies | 2 +- example/pubspec.lock | 2 +- ios/Classes/Api/MOP_registerExtensionApi.m | 8 ++++---- ios/mop.podspec | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/example/.flutter-plugins-dependencies b/example/.flutter-plugins-dependencies index 46de6ce..82c7661 100644 --- a/example/.flutter-plugins-dependencies +++ b/example/.flutter-plugins-dependencies @@ -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"} \ No newline at end of file +{"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"} \ No newline at end of file diff --git a/example/pubspec.lock b/example/pubspec.lock index 75c4c64..83d3ca0 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -87,7 +87,7 @@ packages: path: ".." relative: true source: path - version: "2.33.5" + version: "2.33.3" path: dependency: transitive description: diff --git a/ios/Classes/Api/MOP_registerExtensionApi.m b/ios/Classes/Api/MOP_registerExtensionApi.m index f4fd119..d86d4d4 100644 --- a/ios/Classes/Api/MOP_registerExtensionApi.m +++ b/ios/Classes/Api/MOP_registerExtensionApi.m @@ -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); } diff --git a/ios/mop.podspec b/ios/mop.podspec index 62aa5d0..d81b250 100644 --- a/ios/mop.podspec +++ b/ios/mop.podspec @@ -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