Explorar el Código

feat:微信回调增加参数

wangchuanjin hace 3 años
padre
commit
a38d77ccd1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/jfw/front/frontRouter.go

+ 1 - 1
src/jfw/front/frontRouter.go

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