@@ -324,7 +324,7 @@ func SendYbQuestionToResearcher(questionId, adminId int, openid, questionTitle,
//sendMap := make(map[string]interface{})
//sendData := make(map[string]interface{})
- first := "您好,有新的提问待回复"
+ first := time.Now().Format(utils.FormatDate) + ": 您好,有新的提问待回复"
keyword1 := questionTitle
keyword2 := "待回复"
if remark == "" {
@@ -85,7 +85,7 @@ func NotifyNeedAnswerQuestionToResearch(ctx context.Context) (err error) {
continue
}
// 发送模版消息给研究员
- if e := SendYbQuestionToResearcher(item.CommunityQuestionId, adminInfo.AdminId, adminInfo.OpenId, item.QuestionContent, ""); e != nil {
+ if err = SendYbQuestionToResearcher(item.CommunityQuestionId, adminInfo.AdminId, adminInfo.OpenId, item.QuestionContent, ""); err != nil {
errmsg += fmt.Sprintf("发送失败,推送模板消息失败 研究员id:%d, 提问id:%d\n", item.ReplierAdminId, item.CommunityQuestionId)
return