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 %}