|
@@ -127,9 +127,9 @@ func SendWxMsgWithAsk(name, askTime, askMsg, title string, openIdList []*models.
|
|
|
var msg string
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
- go utils.SendEmail("发送模版消息失败"+"【"+utils.APPNAME+"】"+time.Now().Format("2006-01-02 15:04:05"), msg+";Err:"+err.Error(), utils.EmailSendToUsers)
|
|
|
- go utils.SendAlarmMsg(fmt.Sprint("发送报告提问消息提醒模版消息失败,用户名", name, "文章ID:", articleId), 2)
|
|
|
- utils.FileLog.Info("发送模版消息失败,Err:%s", err.Error())
|
|
|
+
|
|
|
+ go utils.SendAlarmMsg(fmt.Sprint("发送报告提问消息提醒模版消息失败,SendWxMsgWithAsk 用户名", name, "文章ID:", articleId, "Err:"+err.Error()), 2)
|
|
|
+
|
|
|
}
|
|
|
fmt.Println("line 21", err, msg)
|
|
|
}()
|
|
@@ -213,7 +213,7 @@ func SendWxMsgWithArticleClassToAdmin(keyword1, keyword2, keyword3, keyword4 str
|
|
|
}
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
- go utils.SendAlarmMsg(fmt.Sprint("发送报告提问消息提醒模版消息失败,文章ID:", articleId), 2)
|
|
|
+ go utils.SendAlarmMsg(fmt.Sprint("发送报告提问消息提醒模版消息失败,SendWxMsgWithArticleClassToAdmin 文章ID:", articleId, "Err:"+err.Error()), 2)
|
|
|
}
|
|
|
}()
|
|
|
|
|
@@ -261,7 +261,7 @@ func SendWxMsgWithArticleUserRemind(keyword1, keyword2 string, openIdList []*mod
|
|
|
}
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
- go utils.SendAlarmMsg(fmt.Sprint("发送报告提问消息提醒模版消息失败,文章ID:", articleId), 2)
|
|
|
+ go utils.SendAlarmMsg(fmt.Sprint("发送报告提问消息提醒模版消息失败,SendWxMsgWithArticleUserRemind 文章ID:", articleId, "Err:"+err.Error()), 2)
|
|
|
}
|
|
|
}()
|
|
|
|
|
@@ -494,7 +494,7 @@ func SendTemplateMsg(sendUrl string, data []byte, resource string, sendType int,
|
|
|
func SendWxMsgWithArticleUpdate(first, keyword1, keyword2, keyword3, keyword4 string, item *models.OpenIdList, articleId int) (err error) {
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
- go utils.SendAlarmMsg(fmt.Sprint("发送报告提问消息提醒模版消息失败,文章ID:", articleId), 2)
|
|
|
+ go utils.SendAlarmMsg(fmt.Sprint("发送报告提问消息提醒模版消息失败,SendWxMsgWithArticleUpdate 文章ID:", articleId, "Err:"+err.Error()), 2)
|
|
|
}
|
|
|
}()
|
|
|
|