update
This commit is contained in:
@ -87,7 +87,7 @@ class NewsController extends AbstractController
|
|||||||
public function insert()
|
public function insert()
|
||||||
{
|
{
|
||||||
$model = new NewsFormModel();
|
$model = new NewsFormModel();
|
||||||
$model->setAttributes($this->request->post(), ['title', 'keywords', 'description', 'cover', 'content']);
|
$model->setAttributes($this->request->post(), ['title', 'keywords', 'description', 'cover', 'content', 'platform']);
|
||||||
$model->insert();
|
$model->insert();
|
||||||
return $this->response->json(['code' => 0, 'msg' => 'ok']);
|
return $this->response->json(['code' => 0, 'msg' => 'ok']);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user