duxin 3 лет назад
Родитель
Сommit
8916b44c71
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      rpc/common/internal/logic/sensitivemethodlogic.go

+ 1 - 1
rpc/common/internal/logic/sensitivemethodlogic.go

@@ -77,7 +77,7 @@ func (l *SensitiveMethodLogic) SensitiveMethod(in *common.SensitiveRequest) (*co
 	if isAttach {
 		upData["sensitive_attach"] = mc.MapToJson(sensitiveAttach)
 	}
-	if in.AttachTxt != "" {
+	if in.AttachTxt != "" && in.MsgType != "3" {
 		upData["discern_attach"] = in.AttachTxt
 	}
 	log.Println("敏感词回调参数in:", in)