fix:修改注入方法返回结果的判断

master
wangtao 2021-07-09 17:07:44 +08:00
parent 68212f16e6
commit b3934a1289
2 changed files with 6 additions and 3 deletions

View File

@ -21,11 +21,14 @@
NSLog(@"%@",param);
NSString* api = [@"extensionApi:" stringByAppendingString:self.name];
[channel invokeMethod:api arguments:param result:^(id _Nullable result) {
if([result isKindOfClass:[FlutterError class]]|| [result isKindOfClass:[FlutterMethodNotImplemented class] ])
NSLog(@"extensionApi reslut:%@",result);
if([result isKindOfClass:[FlutterError class]] || result == FlutterMethodNotImplemented)
{
NSLog(@"extensionApi reslut:fail");
callback(FATExtensionCodeFailure,nil);
}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.31.0-alpha20210630v04'
s.dependency 'FinAppletExt' , '2.31.0-alpha20210630v04'
s.dependency 'FinApplet' , '2.32.0-alpha20210709v02'
s.dependency 'FinAppletExt' , '2.32.0-alpha20210709v02'
end