From 421771e24d3cdeb5edd965d7e024bc48e4974c48 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Mon, 23 Sep 2024 16:29:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A7=86=E9=A2=91=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=88=90=E5=8A=9F=EF=BC=8C=E4=BD=86=E8=BF=98=E6=98=AF?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/view/business_school/edit_content.html | 8 +++++--- app/common/model/BusinessSchool.php | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/admin/view/business_school/edit_content.html b/app/admin/view/business_school/edit_content.html index 14797fa7..fc8f633e 100755 --- a/app/admin/view/business_school/edit_content.html +++ b/app/admin/view/business_school/edit_content.html @@ -61,8 +61,7 @@
+ 上传视频
- -
+
x
@@ -228,9 +227,12 @@ url: '{:url("BusinessSchool/delVideo")}', data: {videoFile}, type: "post", - success: function (res) {} + success: function (res) { + + } }); + $("input[name='video']").val('') $("#upload-video-block").show() $("#video-block").hide() $("#businessSchoolVideo").attr('src', '') diff --git a/app/common/model/BusinessSchool.php b/app/common/model/BusinessSchool.php index 7a9daedd..9f6ec743 100644 --- a/app/common/model/BusinessSchool.php +++ b/app/common/model/BusinessSchool.php @@ -14,6 +14,8 @@ class BusinessSchool extends Models public function getVideoAttr($value) { - return Config::get('aliyunoss.domain') . $value; + if ($value) { + return Config::get('aliyunoss.domain') . $value; + } } } \ No newline at end of file