|
@@ -989,7 +989,7 @@ export default {
|
|
|
//这里需要根据站点动态拼接域名
|
|
|
let addr = this.$store.state.config.srvAdr
|
|
|
let type = this.$store.state.config.srvAdrType
|
|
|
- let host, clientId
|
|
|
+ let host, clientId, loginDomain
|
|
|
//国际站
|
|
|
if (addr == 'Global') {
|
|
|
if (type == 'product') {
|
|
@@ -1000,6 +1000,7 @@ export default {
|
|
|
host = this.$store.state.config[addr].domainUrl[1].url
|
|
|
}
|
|
|
clientId = this.$store.state.config.Global.clientID
|
|
|
+ loginDomain = this.$store.state.config.Global.accAPIUrl
|
|
|
}
|
|
|
// 大陆站
|
|
|
else {
|
|
@@ -1009,6 +1010,7 @@ export default {
|
|
|
host = this.$store.state.config.China.domainUrl[1].url
|
|
|
}
|
|
|
clientId = this.$store.state.config.China.clientID
|
|
|
+ loginDomain = this.$store.state.config.China.accAPIUrl
|
|
|
}
|
|
|
let state = this.$jsFn.getBtwRandom(1000, 9999)
|
|
|
let idToken = localStorage.getItem('id_token')
|
|
@@ -1016,7 +1018,7 @@ export default {
|
|
|
let nonce = tokenData ? tokenData.nonce : ''
|
|
|
let callbackUrl = `${host}/joinclass?listName=${listName}&tName=${tName}&listNo=${this.stuListNo}&cusName=${cusName}`
|
|
|
let dcUrl = encodeURIComponent(callbackUrl)
|
|
|
- let loginUrl = `https://account.teammodel.cn?response_type=code&client_id=${clientId}&state=${state}&nonce=${nonce}&redirect_uri=${dcUrl}`
|
|
|
+ let loginUrl = `${loginDomain}?response_type=code&client_id=${clientId}&state=${state}&nonce=${nonce}&redirect_uri=${dcUrl}`
|
|
|
this.inviteUrl = loginUrl
|
|
|
console.log(loginUrl)
|
|
|
this.createQRCode(loginUrl)
|