zhangzy
2021-02-04 7278737ca5640d27be8f055ba1fa59b17e9ad150
'save'
1 files modified
3 ■■■■■ changed files
app/Http/Controllers/Api/v1/FaceController.php 3 ●●●●● patch | view | raw | blame | history
app/Http/Controllers/Api/v1/FaceController.php
@@ -398,6 +398,9 @@
            {
                return $this->_response([], ResponseCode::PARAM_ERROR, '签到失败,未识别到人脸信息,请联系老师处理');
            }
            if(count($entityId = $res['data']['Data']['MatchList'][0]['FaceItems'])==0) {
                return $this->_response([], ResponseCode::PARAM_ERROR, '签到失败,未注册人脸,请联系老师处理');
            }
            $entityId = $res['data']['Data']['MatchList'][0]['FaceItems'][0]['EntityId'];
            $score = $res['data']['Data']['MatchList'][0]['FaceItems'][0]['Score'];