魏熙美 6 anni fa
parent
commit
3ffb039636

+ 6
- 4
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/FaceServicelimpl.java Vedi File

@@ -245,11 +245,13 @@ public class FaceServicelimpl implements FaceServiceI {
245 245
                     throw new RuntimeException("人脸推送失败!");
246 246
                 }
247 247
 
248
-                // 下发卡权限
249
-                // 下发可是对讲卡权限
250
-                ihkService.visualIntercomPermissions(unitHkSetting, tpEquipmentTree, taUserHk, userVerify, user);
251
-
252 248
                 if (isA) {
249
+                    /**
250
+                     * 添加人脸的时候下发可视对讲卡权限,修改人脸的时候不下发卡权限
251
+                     */
252
+                    // 下发可是对讲卡权限
253
+                    ihkService.visualIntercomPermissions(unitHkSetting, tpEquipmentTree, taUserHk, userVerify, user);
254
+
253 255
                     taFaceMapper.insertSelective(taFace);
254 256
                 } else {
255 257
                     taFaceMapper.updateByPrimaryKeySelective(taFace);