Quellcode durchsuchen

照片不存在不能上传人员信息到设备

fllmoyu vor 5 Jahren
Ursprung
Commit
29a2924e11

+ 3 - 2
common/src/main/java/com/jpsoft/smart/modules/lapi/service/impl/LapiServiceImpl.java

@@ -273,11 +273,12 @@ public class LapiServiceImpl implements ILapiService {
                         throw new Exception("人员照片大小限定为10k~512k");
                     }
                 } else {
-                    map1.put("ImageNum", 0);
+                    throw new Exception("照片不存在");
+                   /* map1.put("ImageNum", 0);
                     map3.put("FaceID", 0);
                     map3.put("Name", "");
                     map3.put("Size", 0);
-                    map3.put("Data", "");
+                    map3.put("Data", "");*/
                 }
 
                 List listMap3 = new ArrayList();