Browse Source

update 修改CollectTime格式

pull/2/head
lucas 2 months ago
parent
commit
995aa2e415
  1. 2
      adaptors/安心云最新设备数据toES.go

2
adaptors/安心云最新设备数据toES.go

@ -133,7 +133,7 @@ func toEsRaw(deviceData *models.DeviceData) *models.EsRaw {
StructId: deviceData.StructId, StructId: deviceData.StructId,
IotaDeviceName: deviceData.Name, IotaDeviceName: deviceData.Name,
Data: deviceData.Raw, Data: deviceData.Raw,
CollectTime: deviceData.AcqTime, CollectTime: deviceData.AcqTime.Format("2006-01-02T15:04:05.000+0800"),
Meta: dataOutMeta, Meta: dataOutMeta,
IotaDevice: deviceData.DeviceId, IotaDevice: deviceData.DeviceId,
CreateTime: time.Now(), CreateTime: time.Now(),

Loading…
Cancel
Save