diff --git a/.gitignore b/.gitignore index ce40477..662da34 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ .env ul.db composer.lock +public/upload/* diff --git a/app/admin/controller/System.php b/app/admin/controller/System.php index 8000805..41bceee 100644 --- a/app/admin/controller/System.php +++ b/app/admin/controller/System.php @@ -28,6 +28,11 @@ class System extends Common return View::fetch(); } + public function agreement() + { + + return View::fetch(); + } public function update() { @@ -41,6 +46,11 @@ class System extends Common $list = SystemConfig::column('value','name'); foreach ($post_data as $key => $value) { + + if(!is_string($value)){ + $value = serialize($value); + } + if(\in_array($key,$upload_files_config)){ $old_save_name = get_system_config($key); AppUploadFiles::use($value); diff --git a/config/upload_type.php b/config/upload_type.php index a2ba5bc..d273ae2 100644 --- a/config/upload_type.php +++ b/config/upload_type.php @@ -4,4 +4,5 @@ return [ 1 => '系统LOGO', 2 => '管理员头像', 3 => '用户头像', + 4=>'富文本图片', ]; \ No newline at end of file diff --git a/view/admin/common/left_system.html b/view/admin/common/left_system.html index c3f6616..e47c295 100644 --- a/view/admin/common/left_system.html +++ b/view/admin/common/left_system.html @@ -8,6 +8,9 @@