feat: There is no way the, weblink 免登陆
This commit is contained in:
@@ -114,25 +114,37 @@
|
|||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if(res.code){
|
if(res.data){
|
||||||
let userName = res.data.access_token;
|
axios.request({
|
||||||
if(userName !== undefined && userName !== ""){
|
url: 'https://iftappwelink.foton.com.cn/devserver/welink/getUserInfoByAuthCode?code='+code,
|
||||||
checkPageNoEncryption({
|
method: 'post',
|
||||||
username: userName
|
headers: {
|
||||||
}, {
|
"Content-Type": "application/json",
|
||||||
_this: this
|
},
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.ok) {
|
if(res.data){
|
||||||
this.loginNew(res)
|
let userName = res.data.access_token;
|
||||||
} else {
|
if(userName !== undefined && userName !== ""){
|
||||||
if(res.respCode && res.respCode === 'r0011'){
|
checkPageNoEncryption({
|
||||||
this.logout()
|
username: userName
|
||||||
}
|
}, {
|
||||||
|
_this: this
|
||||||
|
}).then(res => {
|
||||||
|
if (res.ok) {
|
||||||
|
this.loginNew(res)
|
||||||
|
} else {
|
||||||
|
if(res.respCode && res.respCode === 'r0011'){
|
||||||
|
this.logout()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else {
|
||||||
|
// window.location.href = ssoLogoutUrlDev
|
||||||
}
|
}
|
||||||
})
|
}else {
|
||||||
}else {
|
this.logout()
|
||||||
// window.location.href = ssoLogoutUrlDev
|
}
|
||||||
}
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user