|
@@ -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) {
|