Commit 9ab748c1 authored by hetengji's avatar hetengji

域名

parent 49948a24
......@@ -42,13 +42,13 @@ App({
const accountInfo = wx.getAccountInfoSync();
console.log(accountInfo)
if (accountInfo.miniProgram.envVersion == 'develop') { // 开发板
this.globalData.globalUrl = 'https://repairtest.zeruiedu.com'
this.globalData.globalUrl = 'https://tianzehr.xueyoubangedu.com'
} else if (accountInfo.miniProgram.envVersion == 'trial') { // 体验版
this.globalData.globalUrl = 'https://repairtest.zeruiedu.com'
this.globalData.globalUrl = 'https://tianzehr.xueyoubangedu.com'
} else if (accountInfo.miniProgram.envVersion == 'release') { // 正式版
this.globalData.globalUrl = 'https://repair.zeruiedu.com'
this.globalData.globalUrl = 'https://www.tianzerencai.com'
} else {
this.globalData.globalUrl = 'https://repairtest.zeruiedu.com'
this.globalData.globalUrl = 'https://tianzehr.xueyoubangedu.com'
}
console.log(this.globalData.globalUrl)
},
......@@ -135,7 +135,7 @@ App({
that.globalData.token = res.data.data.token
// login
wx.request({
url: that.globalData.globalUrl + '/api/v1.0/login',
url: that.globalData.globalUrl + '/api/v1.0/xcxLogin',
data: {
token: res.data.data.token
},
......
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