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,7 +17,7 @@ import yxAxios from '@/https/yxAxios' | ||
17 | Vue.prototype.yxAxios = yxAxios; | 17 | Vue.prototype.yxAxios = yxAxios; |
18 | 18 | ||
19 | Vue.prototype.http = http; | 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 | Vue.prototype.baseUrl = 'https://proxy.shunzhi.net'; | 21 | Vue.prototype.baseUrl = 'https://proxy.shunzhi.net'; |
22 | // Vue.prototype.yanxueUrl = 'https://www.zlyanxue.cn'; | 22 | // Vue.prototype.yanxueUrl = 'https://www.zlyanxue.cn'; |
23 | // Vue.prototype.yanxueUrl = 'https://zlyx.shunzhi.net'; | 23 | // Vue.prototype.yanxueUrl = 'https://zlyx.shunzhi.net'; |
src/views/Authorize.vue
@@ -17,8 +17,8 @@ export default { | @@ -17,8 +17,8 @@ export default { | ||
17 | let openId = localStorage.getItem('openId') | 17 | let openId = localStorage.getItem('openId') |
18 | if (!openId) { | 18 | if (!openId) { |
19 | if (!code) { | 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 | } else { | 22 | } else { |
23 | // 通过code获取openId和token | 23 | // 通过code获取openId和token |
24 | this.$toast.loading({ | 24 | this.$toast.loading({ |
@@ -27,7 +27,7 @@ export default { | @@ -27,7 +27,7 @@ export default { | ||
27 | forbidClick: true, | 27 | forbidClick: true, |
28 | }) | 28 | }) |
29 | yxAxios | 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 | .then((res) => { | 31 | .then((res) => { |
32 | this.$toast.clear() | 32 | this.$toast.clear() |
33 | console.log(res) | 33 | console.log(res) |
@@ -40,8 +40,8 @@ export default { | @@ -40,8 +40,8 @@ export default { | ||
40 | } else { | 40 | } else { |
41 | setTimeout(() => { | 41 | setTimeout(() => { |
42 | localStorage.removeItem('openId') | 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 | }, 2000) | 45 | }, 2000) |
46 | } | 46 | } |
47 | }) | 47 | }) |
src/views/Feedbook/FeedbookEdit.vue
@@ -54,7 +54,7 @@ export default { | @@ -54,7 +54,7 @@ export default { | ||
54 | 'Content-Type': 'multipart/form-data', | 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 | if (res?.status == 200 && res.data.code == 200) { | 58 | if (res?.status == 200 && res.data.code == 200) { |
59 | files[index].status = 'succeed' | 59 | files[index].status = 'succeed' |
60 | files[index].url = res.data.message | 60 | files[index].url = res.data.message |
src/views/GrowUp/StoryRelease.vue
@@ -66,7 +66,7 @@ export default { | @@ -66,7 +66,7 @@ export default { | ||
66 | 'Content-Type': 'multipart/form-data', | 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 | if (res?.status == 200 && res.data.code == 200) { | 70 | if (res?.status == 200 && res.data.code == 200) { |
71 | files[index].status = 'succeed' | 71 | files[index].status = 'succeed' |
72 | files[index].url = res.data.message | 72 | files[index].url = res.data.message |
src/views/Home/YanxueInfo.vue
@@ -33,7 +33,7 @@ export default { | @@ -33,7 +33,7 @@ export default { | ||
33 | if (this.userNum == '' || this.codeNum == '') { | 33 | if (this.userNum == '' || this.codeNum == '') { |
34 | return this.$toast('请先填写完整信息!'); | 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 | .then((res) => { | 37 | .then((res) => { |
38 | console.log('接口返回', res.data) | 38 | console.log('接口返回', res.data) |
39 | if (res.data.code == '200') { | 39 | if (res.data.code == '200') { |