fix:修改注入方法返回结果的判断
parent
68212f16e6
commit
b3934a1289
|
@ -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);
|
||||
}
|
||||
}];
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue