fix: 修复设备日志时间错误

This commit is contained in:
zhouhao 2025-12-09 17:37:23 +08:00
parent f2b99b501d
commit d6eb169f32
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ public class ThingMessageLog implements Serializable {
public static ThingMessageLog of(TimeSeriesData data, String thingIdProperty) {
ThingMessageLog log = data.as(ThingMessageLog.class);
log.thingId = data.getString(thingIdProperty, log.thingId);
log.timestamp = data.getTimestamp();
return log;
}