wangshan 3 жил өмнө
parent
commit
bdca0fe23c

+ 2 - 1
src/config.json

@@ -54,7 +54,8 @@
 		"bidedoc":"/weixin/frontPage/bidedoc/sess/index",
 		"memberreport_experience":"/bigmember/report/openpushmsg?t=wx_experience&start=%s&end=%s&pushcount=%s&advertcode=%s",
 		"chanpartner":"/weixin/frontPage/partner/sess/partner?p=wxmeun",
-		"datareport":"/datareport/page/order/detail/%s?advertcode=%s"
+		"datareport":"/datareport/page/order/detail/%s?advertcode=%s",
+		"vipFree7":"/weixin/frontPage/share/sess/index?p=wxmeun"
     },
     "jy_activeset": {
         "activitystartcode": "3201000000",

+ 1 - 1
src/jfw/modules/weixin/src/config.json

@@ -30,7 +30,7 @@
     "tpl_logapply_id": "nWhZ25_llXTKg-3ulTpwAVIdDzRxnxyQ36MdHAiANOk",
     "tpl_datareport_id": "bkGuL_twVo6lTiMQhN_fWiE2TtqvewvPMElQ14IidCY",
     "tpl_activeapply_id": "zZ5ELQuVLfWH3a9cNAf2OBAnn30iY-ywI1rqByJ6KTI",
-    "weixinAutoRpl": "感谢使用剑鱼标讯!\n1.<a href='%s'>【订阅招标信息】</a>\n2.<a href='%s'>【搜索招标信息】</a>\n3.<a href='http://mp.weixin.qq.com/mp/homepage?__biz=MzIyNTM1NDUyNw==&hid=1&sn=f9e98da1975f85011ee138a4ee5cfbe8#wechat_redirect'>【产品帮助】</a>\n4.<a href='%s'>点击这里,查看“%s”的相关招标信息</a>\n5.如需人工协助,请回复“客服”\n6.<a href='https://web-jydev-wcj.jianyu360.cn/front/downloadapppage/normal?source=weixinAutoRpl'>下载剑鱼标讯APP,更加方便快捷</a>\n7.商务合作、渠道代理、媒体合作招募<a href='%s'>【渠道合伙人招募计划限时启动】</a>",
+    "weixinAutoRpl": "感谢使用剑鱼标讯!\n1.<a href='%s'>【订阅招标信息】</a>\n2.<a href='%s'>【搜索招标信息】</a>\n3.<a href='http://mp.weixin.qq.com/mp/homepage?__biz=MzIyNTM1NDUyNw==&hid=1&sn=f9e98da1975f85011ee138a4ee5cfbe8#wechat_redirect'>【产品帮助】</a>\n4.<a href='%s'>点击这里,查看“%s”的相关招标信息</a>\n5.如需人工协助,请回复“客服”\n6.<a href='https://web-jydev-wcj.jianyu360.cn/front/downloadapppage/normal?source=weixinAutoRpl'>下载剑鱼标讯APP,更加方便快捷</a>\n7.呼朋唤友,双方各<a href='%s'>免费获得超级订阅7天</a> \n8.商务合作、渠道代理、媒体合作招募<a href='%s'>【渠道合伙人招募计划限时启动】</a>",
     "autoReplay": {
         "title": "【剑鱼标讯】 两种方法订阅招标信息",
         "url": "https://mp.weixin.qq.com/s?__biz=MzIyNTM1NDUyNw==&mid=100000001&idx=1&sn=58e6008f0577d529a56c9ed78724decf&scene=1&srcid=0628FMQzB61orhqGhfw7fOqT&key=77421cf58af4a653210206f66c0cd4486112d12cb69b77c0c8f926d725679273cf44f733f8993123ef0295c72b8946ba&ascene=0&uin=NDMwMjg4NTU1&devicetype",

+ 2 - 1
src/jfw/modules/weixin/src/wx/wx.go

@@ -262,6 +262,7 @@ func MsgTxtHandler(w ResponseWriter, r *Request) {
 			searchWord := strings.TrimSpace(r.Content)
 			searchWordUrl := fmt.Sprintf(config.Sysconfig["proxysess"].(string), se.EncodeString(openid+","+user.UnionId+","+strconv.Itoa(int(time.Now().Unix()))+",searchKeyword")) + "__" + url.QueryEscape(searchWord)
 			chanPartnerUrl := fmt.Sprintf(config.Sysconfig["proxysess"].(string), se.EncodeString(openid+","+user.UnionId+","+strconv.Itoa(int(time.Now().Unix()))+",chanpartner"))
+			vipFree7Url := fmt.Sprintf(config.Sysconfig["proxysess"].(string), se.EncodeString(openid+","+user.UnionId+","+strconv.Itoa(int(time.Now().Unix()))+",vipFree7"))
 			if len(searchWord) > 0 && len([]rune(searchWord)) > 8 {
 				searchWord = string([]rune(searchWord)[:8]) + "..."
 			}
@@ -270,7 +271,7 @@ func MsgTxtHandler(w ResponseWriter, r *Request) {
 				var activeUrl = fmt.Sprintf(config.Sysconfig["proxysess"].(string), se.EncodeString(openid+","+user.UnionId+","+strconv.Itoa(int(time.Now().Unix()))+",viphomepage"))
 				w.ReplyText(fmt.Sprintf(config.ActiveConfig.AutoRpl, activeUrl, rsssetUrl, searchUrl, searchWordUrl, searchWord))
 			} else {
-				w.ReplyText(fmt.Sprintf(config.Sysconfig["weixinAutoRpl"].(string), rsssetUrl, searchUrl, searchWordUrl, searchWord, chanPartnerUrl))
+				w.ReplyText(fmt.Sprintf(config.Sysconfig["weixinAutoRpl"].(string), rsssetUrl, searchUrl, searchWordUrl, searchWord, vipFree7Url, chanPartnerUrl))
 			}
 		}
 	}