فهرست منبع

处理报警主机传感器设备类型异常问题

jingyuanchao 10 ماه پیش
والد
کامیت
9edc23cb07

+ 2 - 2
soc-common/soc-common-core/src/main/java/com/xunmei/common/core/enums/iot/DefenceAreaType.java

@@ -22,7 +22,7 @@ public enum DefenceAreaType {
      * 入侵 Intrusion
      * 门磁 DoorSensor
      * 烟感 Smoke
-     * 红外微波双鉴 IMDualidentification
+     * 红外微波双鉴 IMDualIdentification
      * 微波 Microwave
      * 紧急按钮 EmergencyButton
      *
@@ -39,7 +39,7 @@ public enum DefenceAreaType {
     INTRUSION("Intrusion", "入侵"),
     DOOR_SENSOR("DoorSensor", "门磁"),
     SMOKE("Smoke", "烟感"),
-    IM_DUAL_IDENTIFICATION("IMDualidentification", "红外微波双鉴"),
+    IM_DUAL_IDENTIFICATION("IMDualIdentification", "红外微波双鉴"),
     MICROWAVE("Microwave", "微波"),
     EMERGENCY_BUTTON("EmergencyButton", "紧急按钮");
 

+ 1 - 1
soc-modules/soc-modules-host/src/main/java/com/xunmei/host/iot/service/impl/IotDeviceInfoServiceImpl.java

@@ -1290,7 +1290,7 @@ public class IotDeviceInfoServiceImpl extends ServiceImpl<IotDeviceInfoMapper, I
         final WebsocketResult result = WebsocketResult.invokeHostServer(topic, new JSONObject(), WebSocketConstants.PUSH_DEVICES_SERVICES, param);
         websocketService.sendMsgByTokens(result, deviceInfo.getIotToken());
         monitorSyncStatus(deviceInfo);
-        LogUtils.SYNC_DEVICE.info("同步设备[ {} ]至主机 [ {} ],设备类型:{}", deviceInfo.getDeviceName(), deviceInfo.getIotToken(), deviceTypeEnum.getDesc());
+        LogUtils.SYNC_DEVICE.info("同步设备[ {} ]至主机 [ {} ],设备类型:{},设备参数:{}", deviceInfo.getDeviceName(), deviceInfo.getIotToken(), deviceTypeEnum.getDesc(), param);
     }
 
     private void monitorSyncStatus(IotDeviceInfo deviceInfo) {