diff --git a/app/Controller/admin/api/NewsController.php b/app/Controller/admin/api/NewsController.php index 1acda46..0a4f834 100755 --- a/app/Controller/admin/api/NewsController.php +++ b/app/Controller/admin/api/NewsController.php @@ -87,7 +87,7 @@ class NewsController extends AbstractController public function insert() { $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(); return $this->response->json(['code' => 0, 'msg' => 'ok']); }