xingzai 10 сар өмнө
parent
commit
b619cdf35e

+ 1 - 1
controllers/report.go

@@ -1515,7 +1515,7 @@ func (this *ReportController) CommentAdd() {
 		br.ErrMsg = "提交留言失败,Err:" + err.Error()
 		return
 	}
-	//go services.SendCommentWxTemplateMsg(req, user, articleInfo, int(msgId))
+	go services.SendCommentWxTemplateMsg(req, user, articleInfo, int(msgId))
 	go services.SendCommentWxTemplateMsgByYxCategory(req, user, articleInfo, int(msgId)) // 发送用户留言提醒(研选公众号类目模版消息)
 	br.Ret = 200
 	br.Success = true

+ 1 - 3
services/wx_template_msg.go

@@ -366,12 +366,10 @@ func SendCommentWxTemplateMsgByYxCategory(req models.AddCygxArticleCommentReq, u
 	var mobiles []string
 	mobiles = append(mobiles, utils.RAI_MOBILE_GAO_YI_WEN, utils.RAI_MOBILE_DONG_HENG, utils.RAI_MOBILE_WU_ANG_DI_WEN, utils.RAI_MOBILE_GE_LIN_WEN) //葛琳、高亦文、董衡、吴昂迪手机号
 	mobile = companyItem.Mobile + "," + utils.WxMsgTemplateIdAskMsgMobilePublic + "," + strings.Join(mobiles, ",")
-
-	mobile = "15557270714,18767183922"
 	//mobile =
 	openIdList, e := models.GetMfyxWxOpenIdByMobileList(mobile)
 	if e != nil {
-		err = errors.New("GetWxOpenIdByMobileList, Err: " + e.Error())
+		err = errors.New("GetMfyxWxOpenIdByMobileList, Err: " + e.Error())
 		return
 	}
 	if len(openIdList) == 0 {