diff --git a/app/admin/controller/system/Content.php b/app/admin/controller/system/Content.php index 90076e24e228b7be0dbf60b5a14633dd463982f6..2def0a185e861f412f377b7caffaf36201c6f711 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());