1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-07-03 15:36:48 +08:00

!24 修复添加课时后进入编辑页面500错误

* 修复添加课时后进入编辑页面500错误
This commit is contained in:
koogua 2020-12-03 14:41:15 +08:00
parent 385016613b
commit 753f2203fa
3 changed files with 7 additions and 7 deletions

View File

@ -110,8 +110,6 @@ class ChapterController extends Controller
$this->view->pick('chapter/edit_lesson'); $this->view->pick('chapter/edit_lesson');
$resources = $chapterService->getResources($chapter->id);
$cos = $chapterService->getSettings('cos'); $cos = $chapterService->getSettings('cos');
$this->view->setVar('cos', $cos); $this->view->setVar('cos', $cos);

View File

@ -1,3 +1,5 @@
{% set file_id = vod ? vod.file_id : '' %}
{% if play_urls %} {% if play_urls %}
<fieldset class="layui-elem-field layui-field-title"> <fieldset class="layui-elem-field layui-field-title">
<legend>视频信息</legend> <legend>视频信息</legend>
@ -51,7 +53,7 @@
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">文件编号</label> <label class="layui-form-label">文件编号</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input class="layui-input" type="text" name="file_id" value="{{ vod.file_id }}" readonly="readonly" lay-verify="required"> <input class="layui-input" type="text" name="file_id" value="{{ file_id }}" readonly="readonly" lay-verify="required">
</div> </div>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">

View File

@ -30,10 +30,10 @@
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">难度</label> <label class="layui-form-label">难度</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="radio" name="level" value="1" title="入门" {% if course.level == '1' %}checked="checked"{% endif %}> <input type="radio" name="level" value="1" title="入门" {% if course.level == 1 %}checked="checked"{% endif %}>
<input type="radio" name="level" value="2" title="初级" {% if course.level == '2' %}checked="checked"{% endif %}> <input type="radio" name="level" value="2" title="初级" {% if course.level == 2 %}checked="checked"{% endif %}>
<input type="radio" name="level" value="3" title="中级" {% if course.level == '3' %}checked="checked"{% endif %}> <input type="radio" name="level" value="3" title="中级" {% if course.level == 3 %}checked="checked"{% endif %}>
<input type="radio" name="level" value="4" title="高级" {% if course.level == '4' %}checked="checked"{% endif %}> <input type="radio" name="level" value="4" title="高级" {% if course.level == 4 %}checked="checked"{% endif %}>
</div> </div>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">