Browse Source

fix:gorm调整

Roc 12 hours ago
parent
commit
36e0b90e63
1 changed files with 0 additions and 9 deletions
  1. 0 9
      controllers/xy/base_auth_xy.go

+ 0 - 9
controllers/xy/base_auth_xy.go

@@ -109,15 +109,6 @@ func (c *BaseAuthXyController) ServeJSON(encoding ...bool) {
 
 func (c *BaseAuthXyController) JSON(data interface{}, hasIndent bool, coding bool) error {
 	c.Ctx.Output.Header("Content-Type", "application/json; charset=utf-8")
-	baseRes := data.(*xy.BaseResponse)
-	if baseRes != nil {
-		//记录错误日志, 并清掉错误信息避免暴露给外部
-		if baseRes.ErrMsg != "" {
-			utils.FileLog.Info(baseRes.ErrMsg)
-			c.Ctx.Input.Header("signature")
-			baseRes.ErrMsg = ""
-		}
-	}
 	var content []byte
 	var err error
 	if hasIndent {