|
@@ -40,14 +40,12 @@ func (c *BaseCommonController) ServeJSON(encoding ...bool) {
|
|
|
hasEncoding = true
|
|
|
}
|
|
|
if c.Data["json"] == nil {
|
|
|
- // go utils.SendEmail(utils.APPNAME+" "+utils.RunMode+"异常提醒", "接口:"+"URI:"+c.Ctx.Input.URI()+";无返回值", utils.EmailSendToUsers)
|
|
|
utils.ApiLog.Notice(utils.APPNAME+" "+utils.RunMode+"异常提醒", "接口:"+"URI:"+c.Ctx.Input.URI()+";无返回值")
|
|
|
return
|
|
|
}
|
|
|
baseRes := c.Data["json"].(*models.BaseResponse)
|
|
|
if baseRes != nil && !baseRes.Success {
|
|
|
utils.ApiLog.Notice("接口:"+"URI:"+c.Ctx.Input.URI()+";ErrMsg:"+baseRes.ErrMsg+";Msg"+baseRes.Msg, utils.EmailSendToUsers)
|
|
|
- // go utils.SendEmail(utils.APPNAME+" "+utils.RunMode+" 失败提醒", "URI:"+c.Ctx.Input.URI()+" ErrMsg:"+baseRes.ErrMsg+";Msg"+baseRes.Msg, utils.EmailSendToUsers)
|
|
|
}
|
|
|
c.JSON(c.Data["json"], hasIndent, hasEncoding)
|
|
|
}
|