| xqd
@@ -436,15 +436,15 @@ class UserController extends Controller
|
|
|
);
|
|
|
$result = $apiFace->match($images);
|
|
|
// $result = json_decode($result,true);
|
|
|
-// if($result['error_code']==0){
|
|
|
-// $res = $result['face_list'];
|
|
|
-// }
|
|
|
+ if($result['error_code']==0){
|
|
|
+ $res = $result['result'];
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}catch (\Exception $exception){
|
|
|
return $this->response->errorForbidden($exception->getMessage());
|
|
|
}
|
|
|
- return response()->json($result);
|
|
|
+ return response()->json($res);
|
|
|
}
|
|
|
|
|
|
/**
|