Commit 58892232 by zhangleyuan

feat:打印调试

parent 5094761b
......@@ -15,6 +15,7 @@ class WorkWxAuthorize extends React.Component {
if(!code){
this.workWechatAuthorize();
}else{
console.log('我已经有code了')
this.workWechatLogin();
}
}
......@@ -44,9 +45,9 @@ class WorkWxAuthorize extends React.Component {
workWechatAuthorize = () => {
const params = {}
Service.hades('anon/hades/getCorpTrainSuiteId',params).then((res)=>{
let path = window.location.href;
let path = location.href;
const htmlUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${res.result}&redirect_uri=${encodeURIComponent(path)}&response_type=code&scope=snsapi_privateinfo&state=STATE#wechat_redirect`
window.location.href = htmlUrl;
location.href = htmlUrl;
})
}
......
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