Commit e05220849e41e8964791f76731a5a4489416519a
1 parent
10d62ff6
Exists in
master
feat:域名替换
Showing
5 changed files
with
9 additions
and
9 deletions
Show diff stats
src/main.js
... | ... | @@ -17,7 +17,7 @@ import yxAxios from '@/https/yxAxios' |
17 | 17 | Vue.prototype.yxAxios = yxAxios; |
18 | 18 | |
19 | 19 | Vue.prototype.http = http; |
20 | -Vue.prototype.proxyUrl = 'https://proxy.shunzhi.net/prod'; | |
20 | +Vue.prototype.proxyUrl = 'https://ocp.sxsedu.net/szsh/usercenter'; | |
21 | 21 | Vue.prototype.baseUrl = 'https://proxy.shunzhi.net'; |
22 | 22 | // Vue.prototype.yanxueUrl = 'https://www.zlyanxue.cn'; |
23 | 23 | // Vue.prototype.yanxueUrl = 'https://zlyx.shunzhi.net'; | ... | ... |
src/views/Authorize.vue
... | ... | @@ -17,8 +17,8 @@ export default { |
17 | 17 | let openId = localStorage.getItem('openId') |
18 | 18 | if (!openId) { |
19 | 19 | if (!code) { |
20 | - // location.href = `https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getCode/yx_zlyx` | |
21 | - location.href = `https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getCode/yx_test_auth` | |
20 | + // location.href = `https://ocp.sxsedu.net/szsh/usercenter/api/wx/wx1305e88d2bc74073/getCode/yx_zlyx` | |
21 | + location.href = `https://ocp.sxsedu.net/szsh/usercenter/api/wx/wx1305e88d2bc74073/getCode/yx_test_auth` | |
22 | 22 | } else { |
23 | 23 | // 通过code获取openId和token |
24 | 24 | this.$toast.loading({ |
... | ... | @@ -27,7 +27,7 @@ export default { |
27 | 27 | forbidClick: true, |
28 | 28 | }) |
29 | 29 | yxAxios |
30 | - .get(`https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getMsgByCode?appId=wx1305e88d2bc74073&code=${code}`) | |
30 | + .get(`https://ocp.sxsedu.net/szsh/usercenter/api/wx/wx1305e88d2bc74073/getMsgByCode?appId=wx1305e88d2bc74073&code=${code}`) | |
31 | 31 | .then((res) => { |
32 | 32 | this.$toast.clear() |
33 | 33 | console.log(res) |
... | ... | @@ -40,8 +40,8 @@ export default { |
40 | 40 | } else { |
41 | 41 | setTimeout(() => { |
42 | 42 | localStorage.removeItem('openId') |
43 | - // location.href = `https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getCode/yx_zlyx` | |
44 | - location.href = `https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getCode/yx_test_auth` | |
43 | + // location.href = `https://ocp.sxsedu.net/szsh/usercenter/api/wx/wx1305e88d2bc74073/getCode/yx_zlyx` | |
44 | + location.href = `https://ocp.sxsedu.net/szsh/usercenter/api/wx/wx1305e88d2bc74073/getCode/yx_test_auth` | |
45 | 45 | }, 2000) |
46 | 46 | } |
47 | 47 | }) | ... | ... |
src/views/Feedbook/FeedbookEdit.vue
... | ... | @@ -54,7 +54,7 @@ export default { |
54 | 54 | 'Content-Type': 'multipart/form-data', |
55 | 55 | }, |
56 | 56 | } |
57 | - Axios.post('https://proxy.shunzhi.net/prod/api/file/fileUpload', params, config).then((res) => { | |
57 | + Axios.post('https://ocp.sxsedu.net/szsh/usercenter/api/file/fileUpload', params, config).then((res) => { | |
58 | 58 | if (res?.status == 200 && res.data.code == 200) { |
59 | 59 | files[index].status = 'succeed' |
60 | 60 | files[index].url = res.data.message | ... | ... |
src/views/GrowUp/StoryRelease.vue
... | ... | @@ -66,7 +66,7 @@ export default { |
66 | 66 | 'Content-Type': 'multipart/form-data', |
67 | 67 | }, |
68 | 68 | } |
69 | - Axios.post('https://proxy.shunzhi.net/prod/api/file/fileUpload', params, config).then((res) => { | |
69 | + Axios.post('https://ocp.sxsedu.net/szsh/usercenter/api/file/fileUpload', params, config).then((res) => { | |
70 | 70 | if (res?.status == 200 && res.data.code == 200) { |
71 | 71 | files[index].status = 'succeed' |
72 | 72 | files[index].url = res.data.message | ... | ... |
src/views/Home/YanxueInfo.vue
... | ... | @@ -33,7 +33,7 @@ export default { |
33 | 33 | if (this.userNum == '' || this.codeNum == '') { |
34 | 34 | return this.$toast('请先填写完整信息!'); |
35 | 35 | } |
36 | - this.yxAxios.get('https://proxy.shunzhi.net/prod/user/info/bingStudyCode?userNum=' + this.userNum + '&code=' + this.codeNum) | |
36 | + this.yxAxios.get('https://ocp.sxsedu.net/szsh/usercenter/user/info/bingStudyCode?userNum=' + this.userNum + '&code=' + this.codeNum) | |
37 | 37 | .then((res) => { |
38 | 38 | console.log('接口返回', res.data) |
39 | 39 | if (res.data.code == '200') { | ... | ... |