From d26aec260f80b19165e96ee7e3910bbc2c882d38 Mon Sep 17 00:00:00 2001 From: augushong Date: Wed, 18 Mar 2020 16:11:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=AF=8C=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E5=AE=9E=E7=8E=B0=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E7=BC=96=E8=BE=91=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + app/admin/controller/System.php | 10 ++ config/upload_type.php | 1 + view/admin/common/left_system.html | 3 + view/admin/system/agreement.html | 186 +++++++++++++++++++++++++++++ 5 files changed, 201 insertions(+) create mode 100644 view/admin/system/agreement.html 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 @@
  • 第三方管理
  • +
  • + 用户协议管理 +
  • \ No newline at end of file diff --git a/view/admin/system/agreement.html b/view/admin/system/agreement.html new file mode 100644 index 0000000..f2c6e86 --- /dev/null +++ b/view/admin/system/agreement.html @@ -0,0 +1,186 @@ + + + + + + + + 系统管理 + {include file="common/_require"} + + + + + + + +
    + {include file="common/_header"} + + {include file="common/left_system"} + +
    + +
    + +
    +
    + +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + +
    + +
    +
    保存
    +
    +
    +
    + +
    +
    +
    + + + {include file="common/_footer"} +
    + + + + + + \ No newline at end of file