人员下发修改

This commit is contained in:
fl 2025-07-04 10:14:26 +08:00
parent f3a84b2fc6
commit 53881f266b
1 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,8 @@ public class PersonFaceServiceImpl implements IPersonFaceService {
String result = IntelligentLibraryUtil.addPerson(personVo);
JSONObject entries = JSONUtil.parseObj(result);
if (entries.getInt("code") == 0) {
personVo.setIndex(entries.getInt("label_index"));
JSONObject datas = entries.getJSONObject("datas");
personVo.setIndex(datas.getInt("label_index"));
} else if (entries.getInt("code") == 7) {
//人员重复,调用修改
personVo.setIndex(entries.getInt("label_index"));
@ -133,7 +134,6 @@ public class PersonFaceServiceImpl implements IPersonFaceService {
sb.append(personVo.getName()).append(":").append(entries.getStr("message")).append("\n");
}
} else {
sb.append(personVo.getName()).append(":").append(entries.getStr("message")).append("\n");
}
//调用添加照片