Browse Source

update 添加data=nil保护

pull/2/head
lucas 2 months ago
parent
commit
3e0cd261e6
  1. 2
      consumers/consumerAXYraw.go

2
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)

Loading…
Cancel
Save