Browse Source

no message

xingzai 1 year ago
parent
commit
f996985f98
1 changed files with 8 additions and 4 deletions
  1. 8 4
      services/cygx/cygx_yanxuan_special.go

+ 8 - 4
services/cygx/cygx_yanxuan_special.go

@@ -77,7 +77,11 @@ func SendWxMsgSpecialFollow(specialId int) (err error) {
 	for _, v := range openIdList {
 		openIdArr = append(openIdArr, v.OpenId)
 	}
-	redirectUrl := utils.WX_MSG_PATH_ACTIVITY_SPECIAL_DETAIL + strconv.Itoa(specialId)
+	redirectUrl := ""
+
+	if utils.RunMode == "release" {
+		redirectUrl = utils.WX_MSG_PATH_YX_SPECIAL_DETAIL + strconv.Itoa(specialId)
+	}
 	sendInfo := new(services.SendWxTemplate)
 	sendInfo.First = first
 	sendInfo.Keyword1 = keyword1
@@ -98,9 +102,9 @@ func SendWxMsgSpecialFollow(specialId int) (err error) {
 	return
 }
 
-func init() {
-	SendWxMsgSpecialAuthor(190, 1)
-}
+//func init() {
+//	SendWxMsgSpecialAuthor(190, 1)
+//}
 
 // 研选专栏审核完成时,给提交人发送模板消息
 func SendWxMsgSpecialAuthor(specialId, status int) (err error) {