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