zwxi 10 ماه پیش
والد
کامیت
285c736653
1فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 5 4
      services/wx_category_template_msg.go

+ 5 - 4
services/wx_category_template_msg.go

@@ -326,8 +326,8 @@ func SendCommentWxCategoryTemplateMsg(req models.AddCygxArticleCommentReq, user
 	return
 }
 
-// 发送报告提问消息提醒
-func SendWxCategoryMsgWithAsk(companyName, realName, sellerName, askTime, askMsg string, openIdList []*models.OpenIdList, articleId int) (err error) {
+// 发送活动提问消息提醒
+func SendWxCategoryMsgWithAsk(companyName, realName, sellerName, askTime, askMsg string, openIdList []*models.OpenIdList, activityId int) (err error) {
 	if len(openIdList) == 0 {
 		return
 	}
@@ -335,7 +335,7 @@ func SendWxCategoryMsgWithAsk(companyName, realName, sellerName, askTime, askMsg
 	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("发送报告提问消息提醒类目模版消息失败,用户名", realName, "文章ID:", articleId), 2)
+			go utils.SendAlarmMsg(fmt.Sprint("发送活动提问消息提醒类目模版消息失败,用户名", realName, "活动ID:", activityId), 2)
 			utils.FileLog.Info("发送类目模版消息失败,Err:%s", err.Error())
 		}
 		fmt.Println("line 21", err, msg)
@@ -358,7 +358,8 @@ func SendWxCategoryMsgWithAsk(companyName, realName, sellerName, askTime, askMsg
 	for _, v := range openIdList {
 		openIdArr = append(openIdArr, v.OpenId)
 	}
-	redirectUrl := utils.WX_MSG_PATH_ARTICLE_DETAIL + strconv.Itoa(articleId)
+	redirectUrl := utils.WX_MSG_PATH_YX_ACTIVITY_DETAIL + strconv.Itoa(activityId)
+	//redirectUrl = utils.WX_MSG_PATH_TEMPLATE_MSG + "SourceId=" + strconv.Itoa(msgId) + "&SourceType=1"
 
 	sendInfo := new(SendWxCategoryTemplate)
 	sendInfo.Keywords = keywords