From 35ad2d7295520d5e22f0e5b8b27e6dfa318ba3c3 Mon Sep 17 00:00:00 2001 From: lucas Date: Tue, 10 Dec 2024 18:03:32 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=8F=96=E6=B6=88=E9=9D=9E=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E6=95=B0=E6=8D=AE=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adaptors/安心云最新设备数据toES.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adaptors/安心云最新设备数据toES.go b/adaptors/安心云最新设备数据toES.go index 1d3dba0..2b255b2 100644 --- a/adaptors/安心云最新设备数据toES.go +++ b/adaptors/安心云最新设备数据toES.go @@ -24,7 +24,7 @@ func (the Adaptor_AXY_LastRAW) Transform(topic, rawMsg string) *models.EsRaw { } func (the Adaptor_AXY_LastRAW) raw2es(iotaData models.IotaData) *models.EsRaw { - if !iotaData.Data.Success() { + if len(iotaData.Data.Data) == 0 { return nil } //log.Printf("设备[%s] 数据时间 %s", iotaData.DeviceId, iotaData.TriggerTime)