|
@@ -45,7 +45,7 @@ func (c *BaseCommonController) ServeJSON(encoding ...bool) {
|
|
|
return
|
|
|
}
|
|
|
baseRes := c.Data["json"].(*models.BaseResponse)
|
|
|
- if baseRes != nil && !baseRes.Success && baseRes.IsSendEmail {
|
|
|
+ if baseRes != nil && !baseRes.Success {
|
|
|
utils.ApiLog.Notice("接口:"+"URI:"+c.Ctx.Input.URI()+";ErrMsg:"+baseRes.ErrMsg+";Msg"+baseRes.Msg, utils.EmailSendToUsers)
|
|
|
|
|
|
}
|