jingyuanchao il y a 10 mois
Parent
commit
aa3b8f39a8

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

@@ -1292,7 +1292,7 @@ public class IotDeviceInfoServiceImpl extends ServiceImpl<IotDeviceInfoMapper, I
     }
 
     private void monitorSyncStatus(IotDeviceInfo deviceInfo) {
-        final LocalDateTime time = LocalDateTime.now().plusSeconds(30);
+        final LocalDateTime time = LocalDateTime.now().plusMinutes(5);
         RedisDelayedQueueUtil.addDelayQueue(deviceInfo.getId(), time, RedisDelayQueueEnum.DEVICE_SYNC_STATUS_MONITOR.getCode());
     }
 

+ 2 - 2
soc-modules/soc-modules-host/src/main/java/com/xunmei/host/server/service/impl/IotServerInfoServiceImpl.java

@@ -182,9 +182,9 @@ public class IotServerInfoServiceImpl extends ServiceImpl<IotServerInfoMapper, I
                 if (ObjectUtil.isNotEmpty(s)) {
                     list = JSON.parseArray(s, String.class);
                 }
-                LogUtils.SOCKET_CONNECT_STATUS_CHECK.info("获取当前系统在线的WS链接:{}", JacksonUtils.toJSONString(list));
+                LogUtils.SOCKET_CONNECT_STATUS_CHECK.info("获取{}系统在线的WS链接:{}",instance.getIp(), JacksonUtils.toJSONString(list));
             } catch (RestClientException e) {
-                LogUtils.SOCKET_CONNECT_STATUS_CHECK.info("获取当前系统在线的WS链接,发生异常:{}", e);
+                LogUtils.SOCKET_CONNECT_STATUS_CHECK.info("获取{}系统在线的WS链接,发生异常:{}",instance.getIp(), e);
                 throw new RuntimeException(e);
             }
             if (list == null) {