浏览代码

imei: 过滤掉imei为空的数据

Yi 6 月之前
父节点
当前提交
b98590c26a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      module/mqtt/sub.go

+ 1 - 0
module/mqtt/sub.go

@@ -70,6 +70,7 @@ func (d *DataEventEntry) CreatMsgLog(msg []byte) {
 	}
 	if subMsgLog.Imei == "" {
 		zaplog.Info("CreatMsgLog", zap.Any("msg", string(msg)), zap.Any("subMsgLog", subMsgLog))
+		return
 	}
 
 	defer func() {