Explorar o código

提交单点登录

wangkaiyue %!s(int64=4) %!d(string=hai) anos
pai
achega
bef94b3368
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/jfw/front/singleLogin.go

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

@@ -64,7 +64,7 @@ func (this *SingleLogin) SingleLogin() error {
 	openid := jyutil.Getopenid(this.GetString("code")) //获取用户openid
 	//登录成功跳转
 	if loginCreateSess(openid, this.Session()) {
-		return this.Redirect(qutil.ObjToString(data["href"]))
+		return this.Redirect(qutil.ObjToString(data["toHref"]))
 	}
 	//未关注跳转
 	if unHref := qutil.ObjToString(data["unHref"]); unHref != "" {