zqbao 9 mesiacov pred
rodič
commit
bada005fdc
1 zmenil súbory, kde vykonal 2 pridanie a 4 odobranie
  1. 2 4
      controllers/base_auth.go

+ 2 - 4
controllers/base_auth.go

@@ -80,9 +80,7 @@ func (c *BaseAuthController) ServeJSON(encoding ...bool) {
 		hasEncoding = true
 	}
 	if c.Data["json"] == nil {
-		//go utils.SendEmail("异常提醒:", "接口:"+"URI:"+c.Ctx.Input.URI()+";无返回值", utils.EmailSendToUsers)
-		//body := "接口:" + "URI:" + c.Ctx.Input.URI() + ";无返回值"
-		//go alarm_msg.SendAlarmMsg(body, 1)
+		utils.ApiLog.Info("异常提醒:", "接口:"+"URI:"+c.Ctx.Input.URI()+";无返回值")
 		return
 	}
 
@@ -103,7 +101,7 @@ func (c *BaseAuthController) ServeJSON(encoding ...bool) {
 		// 记录错误日志, 并清掉错误信息避免暴露给外部
 		if baseRes.ErrMsg != "" {
 
-			utils.FileLog.Info(baseRes.ErrMsg)
+			utils.ApiLog.Info(baseRes.ErrMsg)
 			baseRes.ErrMsg = ""
 		}
 	}