From b8b951ee77860f90c4d4c41e7dafc9a49b3b83ff Mon Sep 17 00:00:00 2001 From: KisChang_Win10 <734615869@qq.com> Date: Mon, 3 Jun 2019 14:49:46 +0800 Subject: [PATCH] =?UTF-8?q?fix=20state=E5=8F=82=E6=95=B0=E5=9C=A8=E5=90=8E?= =?UTF-8?q?=E7=BB=AD=E4=BD=BF=E7=94=A8=E4=B8=AD=E6=B2=A1=E6=9C=89encodeURI?= =?UTF-8?q?=EF=BC=8C=E5=9C=A8=E6=9F=90=E4=BA=9B=E6=83=85=E5=86=B5=E4=B8=8B?= =?UTF-8?q?=E4=BC=9A=E4=B8=A2=E5=A4=B1=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- get-weixin-code.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/get-weixin-code.html b/get-weixin-code.html index ffb06c5..6645468 100644 --- a/get-weixin-code.html +++ b/get-weixin-code.html @@ -70,13 +70,13 @@ 'redirect_uri': encodeURIComponent(location.href), 'response_type': 'code', 'scope': scope, - 'state': state, + 'state': encodeURIComponent(state), }); } else { //第二步,从微信授权页面跳转回来,已经获取到了code,再次跳转到实际所需页面 redirectUri = GWC.appendParams(GWC.urlParams['redirect_uri'], { 'code': code, - 'state': state + 'state': encodeURIComponent(state) }); } @@ -89,4 +89,4 @@ - \ No newline at end of file +