Sfoglia il codice sorgente

Merge branch 'feature/community_research_question' of hongze/hongze_task into master

xyxie 3 mesi fa
parent
commit
59f928d27a
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      services/wx_template_msg.go
  2. 1 1
      services/yb_community_question.go

+ 1 - 1
services/wx_template_msg.go

@@ -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 == "" {

+ 1 - 1
services/yb_community_question.go

@@ -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
 			}