逻辑调整
This commit is contained in:
parent
0ab142e1c4
commit
ab0f38cd97
@ -203,13 +203,16 @@ public class TaskFaceServiceImpl implements TaskFaceService {
|
||||
List<Long> acceptFaceSampleIds;
|
||||
try {
|
||||
SearchFaceResp response = adapter.searchFace(dbName, faceUrl);
|
||||
logEntity.fillResponse(response);
|
||||
List<SearchFaceResultItem> records = response.getResult();
|
||||
if (records.isEmpty()) {
|
||||
if (response == null) {
|
||||
return null;
|
||||
}
|
||||
logEntity.fillResponse(response);
|
||||
SearchFaceRespVo respVo = new SearchFaceRespVo();
|
||||
List<SearchFaceResultItem> records = response.getResult();
|
||||
respVo.setScore(response.getOriginalFaceScore());
|
||||
if (records.isEmpty()) {
|
||||
return respVo;
|
||||
}
|
||||
respVo.setSearchResultJson(JSON.toJSONString(records));
|
||||
if (records.isEmpty()) {
|
||||
return respVo;
|
||||
|
Loading…
x
Reference in New Issue
Block a user