|
@@ -104,7 +104,8 @@ func (c *BaseAuthController) ServeJSON(encoding ...bool) {
|
|
|
baseRes := c.Data["json"].(*models.BaseResponse)
|
|
|
if baseRes != nil && baseRes.Ret != 200 && baseRes.Ret != 408 && baseRes.IsSendEmail {
|
|
|
body, _ := json.Marshal(baseRes)
|
|
|
- go utils.SendEmail(utils.APPNAME+" "+utils.RunMode+" 失败提醒", "URI:"+c.Ctx.Input.URI()+"<br/> ErrMsg:"+baseRes.ErrMsg+";<br/>Msg:"+baseRes.Msg+";<br/> Body:"+string(body), utils.EmailSendToUsers)
|
|
|
+ msgBody := "URI:" + c.Ctx.Input.URI() + "<br/> ErrMsg:" + baseRes.ErrMsg + ";<br/>Msg:" + baseRes.Msg + ";<br/> Body:" + string(body) + ";<br/>" + c.Token
|
|
|
+ go utils.SendEmail(utils.APPNAME+" "+utils.RunMode+" 失败提醒", msgBody, utils.EmailSendToUsers)
|
|
|
}
|
|
|
c.JSON(c.Data["json"], hasIndent, hasEncoding)
|
|
|
}
|