Commit cdbe4c9f authored by zhuwei's avatar zhuwei

商学院-新增文章接口-新增附件字段

parent a787587d
......@@ -92,11 +92,12 @@ class News extends Basic
return $this->response(101, '标签为空');
}
$data['title'] = trim($this->params['title']);
$data['content'] = trim($this->params['content']);
$data['publisher_id'] = $this->userId;
$data['cover_plan'] = $this->params['file_img'];
$data['s_label_id'] = $this->params['s_label_id'];
$data['title'] = trim($this->params['title']);
$data['content'] = trim($this->params['content']);
$data['publisher_id'] = $this->userId;
$data['cover_plan'] = $this->params['file_img'];
$data['s_label_id'] = $this->params['s_label_id'];
$data['annex_file_name'] = $this->params['annex_file_name'];
try {
$this->m_news->editData($data, $this->params['id']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment