Browse Source

修复 萤石云属性token问题

魏熙美 6 years ago
parent
commit
10195f4dda

+ 1
- 1
CODE/foreign-service/src/main/java/com/community/huiju/service/impl/FaceServicelimpl.java View File

@@ -242,7 +242,7 @@ public class FaceServicelimpl  extends ServiceImpl<TaFaceMapper, TaFace> impleme
242 242
 
243 243
                     //可视对讲时 指定人员人脸权限下载
244 244
                     List<Integer> userIdList = new ArrayList<>();
245
-                    userIdList.add(user.getHkUserId());
245
+                    userIdList.add(taUserHk.getHkUserId());
246 246
                     //临时设备编号
247 247
                     // TODO 根据期楼栋号,来查询出门口机
248 248
                     HKOpenApi.visualIntercom(tpEquipmentTree.getOpUserUuid(), 1, userIdList, visualList, tpEquipmentTree.getAppkey(), tpEquipmentTree.getSecret(), tpEquipmentTree.getHttpServer());

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpEquipmentMapper.java View File

@@ -108,6 +108,6 @@ public interface TpEquipmentMapper {
108 108
      * @param expireTime
109 109
      * @return
110 110
      */
111
-    @Select("update tp_equipment set op_user_uuid = #{accessToken} and unit_uuids = #{expireTime} where community_id = #{communityId} and equipment_type=5")
111
+    @Select("update tp_equipment set op_user_uuid = #{accessToken}, unit_uuids = #{expireTime} where community_id = #{communityId} and equipment_type=3")
112 112
     Integer updateYinShiYunByCommunityId(@Param("communityId") Integer communityId,@Param("accessToken") String accessToken, @Param("expireTime") String expireTime);
113 113
 }

+ 1
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/MonitoringServiceImpl.java View File

@@ -287,6 +287,7 @@ public class MonitoringServiceImpl implements IMonitoringService {
287 287
                     // 根据小区更新所有的门口机的萤石云 token, token有效期
288 288
                     tpEquipmentMapper.updateYinShiYunByCommunityId(userElement.getCommunityId(), accessToken, expireTime);
289 289
                 } catch (Exception exception) {
290
+                    exception.printStackTrace();
290 291
                     throw new WisdomException("获取视频Token失败!");
291 292
                 }
292 293