From 3e0cd261e63ed9ba34fe0c3cd351ea2c51689af6 Mon Sep 17 00:00:00 2001 From: lucas Date: Thu, 21 Nov 2024 09:43:36 +0800 Subject: [PATCH] =?UTF-8?q?update=20=20=E6=B7=BB=E5=8A=A0data=3Dnil?= =?UTF-8?q?=E4=BF=9D=E6=8A=A4?= 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 ccc79dd..3121994 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 && len(needPush.Meta) > 0 { + if needPush != nil && len(needPush.Meta) > 0 && needPush.Data != nil { //日志标记 if needPush.IotaDevice == logTagDeviceId { bs, _ := json.Marshal(needPush)