@@ -94,6 +94,8 @@ public class DeviceInfoServiceImpl implements DeviceInfoService {
if (deviceInfo != null){
deviceInfo.setIsOnline(online);
+ deviceInfo.setAbnormalReason(online ? "设备上线" : "设备离线");
+
deviceInfo.setHeartbeatUpdateTime(new Date());
deviceInfoDAO.update(deviceInfo);
}