|
@@ -12,6 +12,7 @@ import (
|
|
|
"qfw/weixin/dao"
|
|
|
wxutil "qfw/weixin/util"
|
|
|
"qfw/weixinconfig"
|
|
|
+ "strconv"
|
|
|
"strings"
|
|
|
"time"
|
|
|
)
|
|
@@ -68,7 +69,9 @@ func SubscribeHandler(w ResponseWriter, r *Request) {
|
|
|
//go dao.UpdateInviteUserCoupon(source)
|
|
|
}
|
|
|
if source == weixinconfig.SysConfig.EntServiceReplay["code"].(string) {
|
|
|
- w.PostText(fmt.Sprintf(weixinconfig.SysConfig.EntServiceReplay["title"].(string), weixinconfig.SysConfig.EntServiceReplay["href"].(string)))
|
|
|
+ href := "http://" + weixinconfig.SysConfig.Domain + "/mobile/sess/" + se.EncodeString(openid+",uid,"+strconv.Itoa(int(time.Now().Unix()))+","+weixinconfig.SysConfig.EntServiceReplay["href"].(string))
|
|
|
+ log.Println("href:", href)
|
|
|
+ w.PostText(fmt.Sprintf(weixinconfig.SysConfig.EntServiceReplay["title"].(string), href))
|
|
|
}
|
|
|
} else {
|
|
|
w.ReplyText(OWELCOME_MSG) // 有旧人关注,返回欢迎消息
|