소스 검색

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() {