Commit 139f019c authored by hujun's avatar hujun

商学院修改

parent aef97226
...@@ -99,7 +99,7 @@ class News extends Basic ...@@ -99,7 +99,7 @@ class News extends Basic
$data['cover_plan'] = $this->params['file_img']; $data['cover_plan'] = $this->params['file_img'];
$data['s_label_id'] = $this->params['s_label_id']; $data['s_label_id'] = $this->params['s_label_id'];
$data['annex_file_name'] = $this->params['annex_file_name']; $data['annex_file_name'] = $this->params['annex_file_name'];
$data['id'] = $this->params['id'];
try { try {
$id = $this->m_news->addData($data, $this->userId); $id = $this->m_news->addData($data, $this->userId);
if ($id) { if ($id) {
...@@ -116,7 +116,7 @@ class News extends Basic ...@@ -116,7 +116,7 @@ class News extends Basic
} catch (\Exception $e) { } catch (\Exception $e) {
return $this->response(101, '新增或编辑失败!'.$e->getMessage()); return $this->response(101, '新增或编辑失败!'.$e->getMessage());
} }
die('1');
return $this->response(200, '新增成功!'); return $this->response(200, '新增成功!');
} }
......
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