xiaogang 4 years ago
parent
commit
8e3490bdcd
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app/Http/Controllers/Api/UserController.php

+ 5 - 0
app/Http/Controllers/Api/UserController.php

@@ -350,6 +350,11 @@ class UserController extends Controller
                     'image_type' => 'BASE64',
                     'image_type' => 'BASE64',
                     'liveness_control'=>'NORMAL',
                     'liveness_control'=>'NORMAL',
                 ),
                 ),
+               array(
+                    'image' => base64_encode(file_get_contents('https://zhengda.oss-accelerate.aliyuncs.com/tinymce/images/cbc1fe6ae109bd0d11b32d066dcd4d7f60e7f1ee5d624.jpg')),
+                    'image_type' => 'BASE64',
+                    'liveness_control'=>'NORMAL',
+                ),
             );
             );
             $res = $apiFace->match($images);
             $res = $apiFace->match($images);
         }catch (\Exception $exception){
         }catch (\Exception $exception){