|
|
@@ -1,5 +1,7 @@
|
|
|
package com.tmzn.devicelinkykc.taskQueue.runner;
|
|
|
|
|
|
+import cn.hutool.http.HttpRequest;
|
|
|
+import cn.hutool.http.HttpResponse;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.tmzn.devicelinkykc.constant.Constant;
|
|
|
import com.tmzn.devicelinkykc.constant.DeviceOnlineStatus;
|
|
|
@@ -118,7 +120,13 @@ public class DeviceOnlineRunner {
|
|
|
socketHandle.removeDeviceConnection(deviceStatus.getPileCode());
|
|
|
needLogin = true;
|
|
|
}
|
|
|
+
|
|
|
+ if(deviceConnection.getLoginStatus()== 0 && deviceConnection.getLoginTime()>0 && (System.currentTimeMillis()-deviceConnection.getLoginTime())>60*1000){
|
|
|
+ logger.info("未应答重新登录{}",device.getPileCode());
|
|
|
+ needLogin = true;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
if(!needLogin){
|
|
|
return ;
|
|
|
}
|