正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -139,6 +139,9 @@ class KeywordVideoController extends BaseController | @@ -139,6 +139,9 @@ class KeywordVideoController extends BaseController | ||
| 139 | 'id.required' => '主键标识不为空', | 139 | 'id.required' => '主键标识不为空', |
| 140 | ]); | 140 | ]); |
| 141 | $keywordModel = new KeywordVideoTask(); | 141 | $keywordModel = new KeywordVideoTask(); |
| 142 | + if(isset($this->param['template_data']) && !empty($this->param['template_data'])){ | ||
| 143 | + $this->param['template_data'] = json_encode($this->param['template_data'],true); | ||
| 144 | + } | ||
| 142 | $rs = $keywordModel->edit($this->param,['id'=>$this->param['id']]); | 145 | $rs = $keywordModel->edit($this->param,['id'=>$this->param['id']]); |
| 143 | if($rs === false){ | 146 | if($rs === false){ |
| 144 | $this->response('编辑失败',Code::SYSTEM_ERROR); | 147 | $this->response('编辑失败',Code::SYSTEM_ERROR); |
-
请 注册 或 登录 后发表评论