Commit 723cf1598652c1c25624112a34481d51c11c653e

Authored by 芯火源
1 parent 49d05b7a

fix: 设备待激活状态兼容HTTP等没有连接时间的设备接入协议

... ... @@ -124,7 +124,7 @@ public class DeviceDTO extends TenantDTO {
124 124 private JsonNode customerAdditionalInfo;
125 125
126 126 public DeviceState getDeviceState() {
127   - if (lastOnlineTime == null) {
  127 + if (statusTime == null) {
128 128 return DeviceState.INACTIVE;
129 129 }
130 130 return deviceState;
... ...