Browse Source

update 添加过滤 诊断类数据 去除Meta为空的非数据

pull/2/head
lucas 2 months ago
parent
commit
1e187bfdff
  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 {
if needPush != nil && len(needPush.Meta) > 0 {
//日志标记
if needPush.IotaDevice == logTagDeviceId {
bs, _ := json.Marshal(needPush)

Loading…
Cancel
Save