From 1e066b750831a4692b97dc13f846280e28a82dbd Mon Sep 17 00:00:00 2001 From: qi5314 <774698289@qq.com> Date: Tue, 22 Mar 2022 09:01:43 +0000 Subject: [PATCH] update app/admin/controller/system/Content.php. --- app/admin/controller/system/Content.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/admin/controller/system/Content.php b/app/admin/controller/system/Content.php index 90076e24..2def0a18 100644 --- a/app/admin/controller/system/Content.php +++ b/app/admin/controller/system/Content.php @@ -214,7 +214,10 @@ class Content extends AdminController if ($this->autoPostValidate($post, get_class($this->model))) { return $this->error($this->errorMsg); } - + //修复属性为空时候 + if(empty($post['attribute'])){ + $post['attribute']=''; + } $this->model->update($post); } catch (\Throwable $th) { return $this->error($th->getMessage()); -- Gitee