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
 
242
 
243
                     //可视对讲时 指定人员人脸权限下载
243
                     //可视对讲时 指定人员人脸权限下载
244
                     List<Integer> userIdList = new ArrayList<>();
244
                     List<Integer> userIdList = new ArrayList<>();
245
-                    userIdList.add(user.getHkUserId());
245
+                    userIdList.add(taUserHk.getHkUserId());
246
                     //临时设备编号
246
                     //临时设备编号
247
                     // TODO 根据期楼栋号,来查询出门口机
247
                     // TODO 根据期楼栋号,来查询出门口机
248
                     HKOpenApi.visualIntercom(tpEquipmentTree.getOpUserUuid(), 1, userIdList, visualList, tpEquipmentTree.getAppkey(), tpEquipmentTree.getSecret(), tpEquipmentTree.getHttpServer());
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
      * @param expireTime
108
      * @param expireTime
109
      * @return
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
     Integer updateYinShiYunByCommunityId(@Param("communityId") Integer communityId,@Param("accessToken") String accessToken, @Param("expireTime") String expireTime);
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
                     // 根据小区更新所有的门口机的萤石云 token, token有效期
287
                     // 根据小区更新所有的门口机的萤石云 token, token有效期
288
                     tpEquipmentMapper.updateYinShiYunByCommunityId(userElement.getCommunityId(), accessToken, expireTime);
288
                     tpEquipmentMapper.updateYinShiYunByCommunityId(userElement.getCommunityId(), accessToken, expireTime);
289
                 } catch (Exception exception) {
289
                 } catch (Exception exception) {
290
+                    exception.printStackTrace();
290
                     throw new WisdomException("获取视频Token失败!");
291
                     throw new WisdomException("获取视频Token失败!");
291
                 }
292
                 }
292
 
293