diff --git a/src/main.js b/src/main.js index aa26066..fc2f837 100644 --- a/src/main.js +++ b/src/main.js @@ -17,7 +17,7 @@ import yxAxios from '@/https/yxAxios' Vue.prototype.yxAxios = yxAxios; Vue.prototype.http = http; -Vue.prototype.proxyUrl = 'https://proxy.shunzhi.net/prod'; +Vue.prototype.proxyUrl = 'https://ocp.sxsedu.net/szsh/usercenter'; Vue.prototype.baseUrl = 'https://proxy.shunzhi.net'; // Vue.prototype.yanxueUrl = 'https://www.zlyanxue.cn'; // Vue.prototype.yanxueUrl = 'https://zlyx.shunzhi.net'; diff --git a/src/views/Authorize.vue b/src/views/Authorize.vue index 3b7080f..878fc71 100644 --- a/src/views/Authorize.vue +++ b/src/views/Authorize.vue @@ -17,8 +17,8 @@ export default { let openId = localStorage.getItem('openId') if (!openId) { if (!code) { - // location.href = `https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getCode/yx_zlyx` - location.href = `https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getCode/yx_test_auth` + // location.href = `https://ocp.sxsedu.net/szsh/usercenter/api/wx/wx1305e88d2bc74073/getCode/yx_zlyx` + location.href = `https://ocp.sxsedu.net/szsh/usercenter/api/wx/wx1305e88d2bc74073/getCode/yx_test_auth` } else { // 通过code获取openId和token this.$toast.loading({ @@ -27,7 +27,7 @@ export default { forbidClick: true, }) yxAxios - .get(`https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getMsgByCode?appId=wx1305e88d2bc74073&code=${code}`) + .get(`https://ocp.sxsedu.net/szsh/usercenter/api/wx/wx1305e88d2bc74073/getMsgByCode?appId=wx1305e88d2bc74073&code=${code}`) .then((res) => { this.$toast.clear() console.log(res) @@ -40,8 +40,8 @@ export default { } else { setTimeout(() => { localStorage.removeItem('openId') - // location.href = `https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getCode/yx_zlyx` - location.href = `https://proxy.shunzhi.net/prod/api/wx/wx1305e88d2bc74073/getCode/yx_test_auth` + // location.href = `https://ocp.sxsedu.net/szsh/usercenter/api/wx/wx1305e88d2bc74073/getCode/yx_zlyx` + location.href = `https://ocp.sxsedu.net/szsh/usercenter/api/wx/wx1305e88d2bc74073/getCode/yx_test_auth` }, 2000) } }) diff --git a/src/views/Feedbook/FeedbookEdit.vue b/src/views/Feedbook/FeedbookEdit.vue index b1fece4..63568d4 100644 --- a/src/views/Feedbook/FeedbookEdit.vue +++ b/src/views/Feedbook/FeedbookEdit.vue @@ -54,7 +54,7 @@ export default { 'Content-Type': 'multipart/form-data', }, } - Axios.post('https://proxy.shunzhi.net/prod/api/file/fileUpload', params, config).then((res) => { + Axios.post('https://ocp.sxsedu.net/szsh/usercenter/api/file/fileUpload', params, config).then((res) => { if (res?.status == 200 && res.data.code == 200) { files[index].status = 'succeed' files[index].url = res.data.message diff --git a/src/views/GrowUp/StoryRelease.vue b/src/views/GrowUp/StoryRelease.vue index 11e3c47..191186c 100644 --- a/src/views/GrowUp/StoryRelease.vue +++ b/src/views/GrowUp/StoryRelease.vue @@ -66,7 +66,7 @@ export default { 'Content-Type': 'multipart/form-data', }, } - Axios.post('https://proxy.shunzhi.net/prod/api/file/fileUpload', params, config).then((res) => { + Axios.post('https://ocp.sxsedu.net/szsh/usercenter/api/file/fileUpload', params, config).then((res) => { if (res?.status == 200 && res.data.code == 200) { files[index].status = 'succeed' files[index].url = res.data.message diff --git a/src/views/Home/YanxueInfo.vue b/src/views/Home/YanxueInfo.vue index f6f7272..d6b7ced 100644 --- a/src/views/Home/YanxueInfo.vue +++ b/src/views/Home/YanxueInfo.vue @@ -33,7 +33,7 @@ export default { if (this.userNum == '' || this.codeNum == '') { return this.$toast('请先填写完整信息!'); } - this.yxAxios.get('https://proxy.shunzhi.net/prod/user/info/bingStudyCode?userNum=' + this.userNum + '&code=' + this.codeNum) + this.yxAxios.get('https://ocp.sxsedu.net/szsh/usercenter/user/info/bingStudyCode?userNum=' + this.userNum + '&code=' + this.codeNum) .then((res) => { console.log('接口返回', res.data) if (res.data.code == '200') { -- libgit2 0.21.0