fix 未注册设备更新最新通讯时间导致注册失败

V0.5.x
jay 2024-06-12 21:00:16 +08:00
parent 0b66c071f8
commit 97f61d05d0
1 changed files with 4 additions and 2 deletions

View File

@ -84,9 +84,11 @@ public class ThingServiceImpl implements IThingService {
DeviceInfo device = getDeviceInfo(deviceName); DeviceInfo device = getDeviceInfo(deviceName);
if (device == null) { if (device == null) {
log.warn("device:{} is not found.", deviceName); log.warn("device:{} is not found.", deviceName);
}else {
long lastTime = System.currentTimeMillis();
deviceUpdateLastTime(device, lastTime);
} }
long lastTime = System.currentTimeMillis();
deviceUpdateLastTime(device, lastTime);
ActionType type = action.getType(); ActionType type = action.getType();
switch (type) { switch (type) {