From 3cf1f51bb30db2221331eaa1c3ff235a02846637 Mon Sep 17 00:00:00 2001 From: koogua Date: Sun, 25 Jul 2021 21:39:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=A4=96=E8=BF=9E=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E5=9C=B0=E5=9D=80=E4=B8=BA=E7=A9=BA500=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Admin/Services/ChapterContent.php | 6 ++- .../Admin/Views/chapter/edit_lesson_vod.volt | 46 ++++++++++++++----- 2 files changed, 40 insertions(+), 12 deletions(-) diff --git a/app/Http/Admin/Services/ChapterContent.php b/app/Http/Admin/Services/ChapterContent.php index c9a39ac0..f911dfe7 100644 --- a/app/Http/Admin/Services/ChapterContent.php +++ b/app/Http/Admin/Services/ChapterContent.php @@ -179,7 +179,11 @@ class ChapterContent extends Service $hdUrl = $post['file_remote']['hd']['url'] ?? ''; $sdUrl = $post['file_remote']['sd']['url'] ?? ''; - $fileRemote = []; + $fileRemote = [ + 'od' => ['url' => ''], + 'hd' => ['url' => ''], + 'sd' => ['url' => ''], + ]; $attrs = $chapter->attrs; diff --git a/app/Http/Admin/Views/chapter/edit_lesson_vod.volt b/app/Http/Admin/Views/chapter/edit_lesson_vod.volt index bb08b51e..09a5c587 100644 --- a/app/Http/Admin/Views/chapter/edit_lesson_vod.volt +++ b/app/Http/Admin/Views/chapter/edit_lesson_vod.volt @@ -112,38 +112,62 @@
-
- -
{% if remote_play_urls.od.url %} +
+ +
预览 复制
+ {% else %} +
+ +
+
+ 预览 + 复制 +
{% endif %}
-
- -
{% if remote_play_urls.hd.url %} +
+ +
预览 复制
+ {% else %} +
+ +
+
+ 预览 + 复制 +
{% endif %}
-
- -
- {% if remote_play_urls.hd.url %} + {% if remote_play_urls.sd.url %} +
+ +
- 预览 + 预览 复制
+ {% else %} +
+ +
+
+ 预览 + 复制 +
{% endif %}