|
@@ -8,6 +8,7 @@ import (
|
|
|
"hongze/hongze_yb/global"
|
|
|
"hongze/hongze_yb/models/tables/yb_poster_resource"
|
|
|
"hongze/hongze_yb/models/tables/yb_suncode_pars"
|
|
|
+ "hongze/hongze_yb/services/alarm_msg"
|
|
|
"hongze/hongze_yb/services/wx_app"
|
|
|
"hongze/hongze_yb/utils"
|
|
|
"io/ioutil"
|
|
@@ -34,7 +35,7 @@ func CreatePosterFromSource(codePage, codeScene, source, version, pars string) (
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
global.LOG.Critical(fmt.Sprintf("CreatePosterFromSource: source=%s, pars:%s, errMsg:%s", source, pars, errMsg))
|
|
|
- go SendEmail(utils.APPNAME+"【"+global.CONFIG.Serve.RunMode+"】"+"失败提醒", "生成分享海报失败, "+errMsg+", CreatePosterFromSource: "+err.Error(), utils.EmailSendToUsers)
|
|
|
+ go alarm_msg.SendAlarmMsg("CreatePosterFromSource生成分享海报失败, Msg:"+errMsg+";Err:"+err.Error(), 2)
|
|
|
}
|
|
|
}()
|
|
|
if codePage == "" || source == "" || pars == "" {
|