|
@@ -555,9 +555,9 @@ class UserController extends Controller
|
|
//'liveness_control'=>'NORMAL',
|
|
//'liveness_control'=>'NORMAL',
|
|
),
|
|
),
|
|
);
|
|
);
|
|
- //throw new Exception(json_encode($images));
|
|
|
|
|
|
+
|
|
$result = $apiFace->match($images);
|
|
$result = $apiFace->match($images);
|
|
-// $result = json_decode($result,true);
|
|
|
|
|
|
+
|
|
if($result['error_code']==0){
|
|
if($result['error_code']==0){
|
|
if($result['result']['score']>80){
|
|
if($result['result']['score']>80){
|
|
$user->is_auth = 1;
|
|
$user->is_auth = 1;
|