|
@@ -92,9 +92,7 @@ public class LapiServiceImpl implements ILapiService {
|
|
|
throw new Exception("人员与设备绑定错误");
|
|
|
}
|
|
|
String base64Data = OSSUtil.downloadToBase64(personInfo.getFaceImageUrl());
|
|
|
- if (base64Data.length() > 512 * 1024 || base64Data.length() < 10 * 1024) {
|
|
|
- throw new Exception("人员照片大小限定为10k~512k");
|
|
|
- }
|
|
|
+
|
|
|
List<LapiResult> lapiResultList = new ArrayList<>();
|
|
|
for (DeviceInfo deviceInfo : deviceList) {
|
|
|
HashMap<String, Object> map = new HashMap<>();
|
|
@@ -132,6 +130,9 @@ public class LapiServiceImpl implements ILapiService {
|
|
|
map.put("PersonInfoList", listMap1);
|
|
|
|
|
|
try {
|
|
|
+ if (base64Data.length() > 512 * 1024 || base64Data.length() < 10 * 1024) {
|
|
|
+ throw new Exception("人员照片大小限定为10k~512k");
|
|
|
+ }
|
|
|
//获取人员人脸库id
|
|
|
String faceDbId = getFaceDbId(deviceInfo, companyInfo.getName());
|
|
|
|