浏览代码

feat:微信回调增加参数

wangchuanjin 3 年之前
父节点
当前提交
a38d77ccd1
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 {