Ver Fonte

Merge branch 'yx_1.1' into debug

zwxi há 11 meses atrás
pai
commit
6104eeb924
1 ficheiros alterados com 5 adições e 4 exclusões
  1. 5 4
      services/wx_category_template_msg.go

+ 5 - 4
services/wx_category_template_msg.go

@@ -468,11 +468,12 @@ func SendReviewCategoryTemplateMsgAdmin(specialId int) (err error) {
 	var keyword2 string
 	var keyword3 string
 	var keyword4 string
+	var keyword5 string
 	keyword1 = specialItem.NickName
 	keyword2 = specialItem.RealName + "-" + user.CompanyName
 	keyword3 = specialItem.SpecialName
-	keyword3 = time.Now().Format(utils.FormatDateTimeMinute2)
-	keyword4 = "研选专栏提交了内容待审核"
+	keyword4 = time.Now().Format(utils.FormatDateTimeMinute2)
+	keyword5 = "研选专栏提交了内容待审核"
 	openIdArr := make([]string, 0)
 	for _, v := range openIdList {
 		openIdArr = append(openIdArr, v.OpenId)
@@ -480,7 +481,7 @@ func SendReviewCategoryTemplateMsgAdmin(specialId int) (err error) {
 	redirectUrl := ""
 	redirectUrl = utils.WX_MSG_PATH_YX_SPECIAL_ENABLE_DETAIL + strconv.Itoa(specialId)
 
-	keywords := []string{keyword1, keyword2, keyword3, keyword4}
+	keywords := []string{keyword1, keyword2, keyword3, keyword4, keyword5}
 
 	sendInfo := new(SendWxCategoryTemplate)
 	sendInfo.Keywords = keywords
@@ -624,7 +625,7 @@ func SendWxCategoryMsgSpecialFollow(specialId int) (err error) {
 
 	sendInfo := new(SendWxCategoryTemplate)
 	sendInfo.Keywords = keywords
-	sendInfo.TemplateId = utils.WxMsgCategoryTemplateIdCompanyApprovalMessageRai
+	sendInfo.TemplateId = utils.WxMsgCategoryTemplateIdActivityPublishApply
 	sendInfo.RedirectTarget = 4
 	sendInfo.SendType = utils.TEMPLATE_MSG_CYGX_ARTICLE_ADD
 	sendInfo.OpenIdArr = openIdArr