From 1e187bfdff7c7a8ef3092b3cf454b2e6c27e718a Mon Sep 17 00:00:00 2001 From: lucas Date: Mon, 18 Nov 2024 13:05:02 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=B7=BB=E5=8A=A0=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=20=E8=AF=8A=E6=96=AD=E7=B1=BB=E6=95=B0=E6=8D=AE=20=E5=8E=BB?= =?UTF-8?q?=E9=99=A4Meta=E4=B8=BA=E7=A9=BA=E7=9A=84=E9=9D=9E=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consumers/consumerAXYraw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consumers/consumerAXYraw.go b/consumers/consumerAXYraw.go index f52e5da..ccc79dd 100644 --- a/consumers/consumerAXYraw.go +++ b/consumers/consumerAXYraw.go @@ -149,7 +149,7 @@ func (the *consumerAXYraw) onData(topic string, msg string) bool { needPush := adaptor.Transform(topic, msg) - if needPush != nil { + if needPush != nil && len(needPush.Meta) > 0 { //日志标记 if needPush.IotaDevice == logTagDeviceId { bs, _ := json.Marshal(needPush)