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