From cfe917c8aeab82eb849f04e3ae4c6a59febc436a Mon Sep 17 00:00:00 2001 From: paidaxing444 <12qwaszx> Date: Thu, 11 Jun 2020 17:29:16 +0800 Subject: [PATCH] =?UTF-8?q?20200611-zlp-1=20=E5=9F=B9=E8=AE=AD=E8=A7=86?= =?UTF-8?q?=E9=A2=91=EF=BC=88=E4=B8=83=E7=89=9B=E8=AE=BE=E7=BD=AE=E7=A7=81?= =?UTF-8?q?=E6=9C=89=E7=A9=BA=E9=97=B4=EF=BC=89=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/benyi_train/video/index.vue | 6 +- .../views/benyi_train/video_study/detail.vue | 2 +- .../views/benyi_train/video_study/index.vue | 4 +- .../com/ruoyi/common/constant/Constants.java | 29 ++++++++- .../com/ruoyi/common/utils/DictUtils.java | 64 +++++++++++++++++++ .../com/ruoyi/common/utils/StringUtils.java | 46 +++++++------ .../ruoyi/common/utils/http/HttpUtils.java | 20 +++++- .../ruoyi/common/utils/ip/AddressUtils.java | 33 ++++++---- .../com/ruoyi/common/utils/ip/IpUtils.java | 7 +- .../controller/ByTrainVideoController.java | 39 ++++++----- .../project/common/CommonController.java | 12 +++- 11 files changed, 199 insertions(+), 63 deletions(-) create mode 100644 ruoyi/src/main/java/com/ruoyi/common/utils/DictUtils.java diff --git a/ruoyi-ui/src/views/benyi_train/video/index.vue b/ruoyi-ui/src/views/benyi_train/video/index.vue index 299679104..7b75dcb6d 100644 --- a/ruoyi-ui/src/views/benyi_train/video/index.vue +++ b/ruoyi-ui/src/views/benyi_train/video/index.vue @@ -349,14 +349,14 @@ export default { file.type === "video/avi" || file.type === "video/wmv" || file.type === "video/rmvb"; - const isLt500M = file.size / 1024 / 1024 < 500; + const isLt1000M = file.size / 1024 / 1024 < 1000; if (!isVideo) { this.msgError("请上传正确格式的视频!"); return false; } else { this.form.filetype = file.type; - if (!isLt500M) { - this.msgError("上传视频文件大小不能超过 500MB!"); + if (!isLt1000M) { + this.msgError("上传视频文件大小不能超过 1000MB!"); return false; } } diff --git a/ruoyi-ui/src/views/benyi_train/video_study/detail.vue b/ruoyi-ui/src/views/benyi_train/video_study/detail.vue index e0d50a26c..22524750a 100644 --- a/ruoyi-ui/src/views/benyi_train/video_study/detail.vue +++ b/ruoyi-ui/src/views/benyi_train/video_study/detail.vue @@ -127,7 +127,7 @@ export default { sources: [ { type: response.data.filetype, - src: "https://files.benyiedu.com/" + response.data.videourl + src: response.data.videourl } ], notSupportedMessage: "此视频暂无法播放,请稍后再试", diff --git a/ruoyi-ui/src/views/benyi_train/video_study/index.vue b/ruoyi-ui/src/views/benyi_train/video_study/index.vue index 5a41bb8e7..2c788a562 100644 --- a/ruoyi-ui/src/views/benyi_train/video_study/index.vue +++ b/ruoyi-ui/src/views/benyi_train/video_study/index.vue @@ -74,7 +74,7 @@