You've already forked FrameTour-BE
逻辑调整
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user