mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-27 21:10:24 +08:00
!66 修复Tag添加错误的BUG
* 添加tag排序字段未添加问题 * update app/Http/Admin/Views/tag/add.volt. 增加是否发布选项,Fix 不能添加BUG
This commit is contained in:
parent
1ce43f6a75
commit
73a2e21cd6
@ -42,6 +42,7 @@ class Tag extends Service
|
|||||||
$tag = new TagModel();
|
$tag = new TagModel();
|
||||||
|
|
||||||
$tag->name = $validator->checkName($post['name']);
|
$tag->name = $validator->checkName($post['name']);
|
||||||
|
$tag->priority = $validator->checkPriority($post['priority']);
|
||||||
$tag->published = $validator->checkPublishStatus($post['published']);
|
$tag->published = $validator->checkPublishStatus($post['published']);
|
||||||
|
|
||||||
$tag->create();
|
$tag->create();
|
||||||
|
@ -18,6 +18,13 @@
|
|||||||
<input class="layui-input" type="text" name="priority" lay-verify="number">
|
<input class="layui-input" type="text" name="priority" lay-verify="number">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">发布</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="radio" name="published" value="1" title="是" checked="checked" >
|
||||||
|
<input type="radio" name="published" value="0" title="否" >
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<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">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user