Ver Fonte

imei: 过滤掉imei为空的数据

Yi há 4 meses atrás
pai
commit
b98590c26a
1 ficheiros alterados com 1 adições e 0 exclusões
  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 == "" {
 	if subMsgLog.Imei == "" {
 		zaplog.Info("CreatMsgLog", zap.Any("msg", string(msg)), zap.Any("subMsgLog", subMsgLog))
 		zaplog.Info("CreatMsgLog", zap.Any("msg", string(msg)), zap.Any("subMsgLog", subMsgLog))
+		return
 	}
 	}
 
 
 	defer func() {
 	defer func() {