|
@@ -122,8 +122,6 @@ public class LapiServiceImpl implements ILapiService {
|
|
|
map3.put("FaceID", personInfo.getId());
|
|
|
map3.put("Name", personInfo.getId() + ".jpg");
|
|
|
|
|
|
-
|
|
|
-
|
|
|
map3.put("Size", base64Data.length());
|
|
|
map3.put("Data", base64Data);
|
|
|
List listMap3 = new ArrayList();
|
|
@@ -133,10 +131,9 @@ public class LapiServiceImpl implements ILapiService {
|
|
|
listMap1.add(map1);
|
|
|
map.put("PersonInfoList", listMap1);
|
|
|
|
|
|
-
|
|
|
- String faceDbId = getFaceDbId(deviceInfo, companyInfo.getName());
|
|
|
try {
|
|
|
//获取人员人脸库id
|
|
|
+ String faceDbId = getFaceDbId(deviceInfo, companyInfo.getName());
|
|
|
|
|
|
JSONObject jsonObject = LApiUtil.PostRequest(deviceInfo.getIpAddress() + ":" + deviceInfo.getPort() + LApiConstant.ADDPERSON + faceDbId + "/People", map);
|
|
|
JSONObject dataJson = jsonObject.getJSONObject("Response");
|
|
@@ -148,9 +145,7 @@ public class LapiServiceImpl implements ILapiService {
|
|
|
lapiMsgResult.setAliasName(deviceInfo.getAliasName());
|
|
|
lapiMsgResults.add(lapiMsgResult);
|
|
|
}
|
|
|
-
|
|
|
} catch (Exception e) {
|
|
|
-
|
|
|
log.error(e.getMessage());
|
|
|
LapiMsgResult lapiMsgResult = new LapiMsgResult();
|
|
|
lapiMsgResult.setPersonName(personInfo.getName());
|
|
@@ -158,12 +153,9 @@ public class LapiServiceImpl implements ILapiService {
|
|
|
lapiMsgResult.setMsg(e.getMessage());
|
|
|
lapiMsgResult.setAliasName(deviceInfo.getAliasName());
|
|
|
lapiMsgResults.add(lapiMsgResult);
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
-
|
|
|
return lapiMsgResults;
|
|
|
}
|
|
|
|