Commit f419630f by zhangleyuan

Merge branch 'feature/zhangleyuan/20210105/wechat-authorize' into dev

parents 5977b640 98cc1a4a
...@@ -38,7 +38,7 @@ class Authorize extends React.Component { ...@@ -38,7 +38,7 @@ class Authorize extends React.Component {
) )
} }
wechatAuthorize = () => { wechatAuthorize = () => {
let path = window.location.origin + window.location.pathname; let path = window.location.href;
let htmlUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + AppId + let htmlUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + AppId +
'&redirect_uri=' + encodeURIComponent(path) + '&redirect_uri=' + encodeURIComponent(path) +
'&response_type=code&scope=snsapi_userinfo&state=state#wechat_redirect'; '&response_type=code&scope=snsapi_userinfo&state=state#wechat_redirect';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment