|
@@ -4,6 +4,7 @@ import (
|
|
"encoding/json"
|
|
"encoding/json"
|
|
"fmt"
|
|
"fmt"
|
|
"github.com/beego/beego/v2/server/web"
|
|
"github.com/beego/beego/v2/server/web"
|
|
|
|
+ "hongze/hongze_public_api/services/alarm_msg"
|
|
"hongze/hongze_public_api/utils"
|
|
"hongze/hongze_public_api/utils"
|
|
"net/http"
|
|
"net/http"
|
|
"net/url"
|
|
"net/url"
|
|
@@ -45,7 +46,8 @@ func (c *BaseCommonController) ServeJSON(encoding ...bool) {
|
|
hasEncoding = true
|
|
hasEncoding = true
|
|
}
|
|
}
|
|
if c.Data["json"] == nil {
|
|
if c.Data["json"] == nil {
|
|
- go utils.SendEmail("异常提醒:"+utils.RunMode, "接口:"+"URI:"+c.Ctx.Input.URI()+";无返回值", utils.EmailSendToUsers)
|
|
|
|
|
|
+ msg := "接口:"+"URI:"+c.Ctx.Input.URI()+";无返回值"
|
|
|
|
+ go alarm_msg.SendAlarmMsg(msg, 3)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
c.JSON(c.Data["json"], hasIndent, hasEncoding)
|
|
c.JSON(c.Data["json"], hasIndent, hasEncoding)
|