|
@@ -409,6 +409,9 @@ public class WatchJWServerHandler extends HexBinaryAcceptanceHandlerAdapter {
|
|
|
return;
|
|
|
}
|
|
|
SwitchWorkModel swm = switchMap.get(deviceId);
|
|
|
+ if (swm == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
logger.warn("心跳检测是否更改终端模式:" + (nowTime - swm.getActiveTime() + ";" + (nowTime - swm.getSwitchTime())));
|
|
|
if (nowTime - swm.getActiveTime() > INTERVAL_TIME && nowTime - swm.getSwitchTime() > INTERVAL_TIME) {
|
|
|
Integer workType = (URGENCY == swm.getWorkType()) ? OTHER : URGENCY;
|