提交 ad3e2d79 authored 作者: 张国庆's avatar 张国庆

fix:ios修改

上级 9d4ab1eb
......@@ -47,8 +47,9 @@ class _MyAppState extends State<MyApp> {
try {
// 调用认证接口,CertifyId需要调用服务器端接口获取。
// 每个CertifyId只能使用一次,否则会返回code: "2002(iOS), 1001(Android)"。
verifyResult = await _aliyunFacePlugin.verify(
"certifyId", "shad04694918b4b774a74bc7e538fc67") ??
verifyResult = await _aliyunFacePlugin.verify({
"certifyId": "shad04694918b4b774a74bc7e538fc67",
}) ??
'-1,error';
} on PlatformException {
verifyResult = '-2,exception';
......
......@@ -3,7 +3,7 @@ description: Demonstrates how to use the aliyun_face_plugin plugin.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.1+1
environment:
sdk: '>=3.0.0 <4.0.0'
......
......@@ -45,8 +45,11 @@
NSMutableDictionary *extParams = [NSMutableDictionary new];
UIViewController *vc = [self viewControllerWithWindow:nil];
[extParams setValue:vc forKey:@"currentCtr"]; // 必须要的参数
NSString *useVideo = [arguments objectForKey:@"ext_params_key_use_video"];
if(useVideo!=nil && useVideo=="1"){
NSLog(@"useVideo: %@.", useVideo);
if(useVideo!=nil && [useVideo isEqual:@"1"]){
[extParams setValue:@"true" forKey:@"returnVideo"];
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论