From b6a3ce98187ea07bba98e8224d8b98d220222554 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 13 Oct 2021 18:43:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E4=BC=A0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 13 +++++++------ src/setting.js | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 5be0fe6..8a9f44e 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,11 +1,9 @@ import Setting from "@/setting"; -// let host = `${Setting.apiBaseURL}evaluation/`; +let host = Setting.apiBaseURL; +let uploadURL = "http://39.108.250.202:10000/"; let loginhost = `${Setting.apiBaseURL}liuwanr/`; -let host = "http://192.168.31.151:9000/"; // 榕 -// let host = "http://192.168.31.137:9000/"; // 赓 -// let host = "http://39.108.250.202:9000/"; // 测试服 export default { host, @@ -56,8 +54,6 @@ export default { queryChaptersAndSubsections: `${host}occupationlab/management/edu/courseChapter/queryChaptersAndSubsections`, // 根据课程id查询章节小节,树状结构 getSubsection: `${host}occupationlab/management/edu/courseSubsection/getSubsection`, // 根据小节id获取预览文件地址 - getPlayAuth: `${host}nakadai/nakadai/oss/getPlayAuth`, // 获取播放凭证 - // 资讯 queryAllColumns: `${host}occupationlab/enterprise/information/column/queryAllColumns`, // 栏目树 queryArticleByCondition: `${host}occupationlab/enterprise/information/article/queryArticleByCondition`, // 文章列表分页条件查询 @@ -69,6 +65,11 @@ export default { getContestProgress: `${host}occupationlab/enterprise/match/contest-progress/getContestProgress`, // 根据赛事id查询竞赛进展 getContest: `${host}occupationlab/enterprise/match/contest/getContest`, // 根据id查询赛事 + // 阿里云文件/视频管理 + fileDeletion: `${uploadURL}oss/manage/fileDeletion`, // 删除OSS文件 + fileupload: `${uploadURL}oss/manage/fileUpload`, // 文件上传 + getPlayAuth: `${uploadURL}oss/manage/getPlayAuth`, // 获取播放凭证 + diff --git a/src/setting.js b/src/setting.js index fbdb46b..2b5c31b 100644 --- a/src/setting.js +++ b/src/setting.js @@ -48,6 +48,7 @@ if (isHh) { } else if (isDev) { // 本地 // host = "http://39.108.250.202:9000/"; // 中台测试服 + // host = "http://192.168.31.137:9000/"; // 赓 // host = "http://192.168.31.151:9000/"; // 榕 host = "http://192.168.31.125:9000/"; // 坤 defaultSubSystem = "http://39.108.250.202/pyTrials/#/";