|
@@ -104,10 +104,10 @@ func (c *BaseAuthController) ServeJSON(encoding ...bool) {
|
|
|
//}
|
|
|
|
|
|
// 记录错误日志, 并清掉错误信息避免暴露给外部
|
|
|
- if baseRes.ErrMsg != "" {
|
|
|
- utils.FileLog.Info(baseRes.ErrMsg)
|
|
|
- baseRes.ErrMsg = ""
|
|
|
- }
|
|
|
+ //if baseRes.ErrMsg != "" {
|
|
|
+ // utils.FileLog.Info(baseRes.ErrMsg)
|
|
|
+ // baseRes.ErrMsg = ""
|
|
|
+ //}
|
|
|
}
|
|
|
c.JSON(c.Data["json"], hasIndent, hasEncoding)
|
|
|
}
|