|
@@ -68,7 +68,7 @@ func (this *CommonRouter) WxCommonPage(folder, loginSign, htmlPage string) error
|
|
|
if openid == "" || (openid != "" && !CheckUserIsSubscribe(openid)) {
|
|
|
stateKey := this.GetString("state")
|
|
|
if stateKey == "" { //公众号回调
|
|
|
- return this.Redirect(fmt.Sprintf(config.Wxoauth, url.QueryEscape(this.Site()+this.Url()), stateKey), 302)
|
|
|
+ return this.Redirect(fmt.Sprintf(config.Wxoauth, url.QueryEscape(this.Site()+this.Url()), "wx"), 302)
|
|
|
}
|
|
|
openid = jyutil.Getopenid(this.GetString("code"))
|
|
|
if ok, _, _ := FindUserAndCreateSess(openid, this.Session(), "wx", false); !ok {
|