From 86c687409b67e4180204ca479285d9dd429e317e Mon Sep 17 00:00:00 2001 From: toom1996 Date: Mon, 7 Jul 2025 18:00:35 +0800 Subject: [PATCH] update --- app/Controller/admin/api/NewsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); }