From 5aab54c79ea296bf3c03a62f8911f6461fcc8a87 Mon Sep 17 00:00:00 2001 From: Hanada Date: Mon, 16 Jun 2025 19:25:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E7=99=BB=E5=BD=95=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81=E5=BC=80=E5=85=B3=E7=A7=BB=E5=88=B0=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20(#246)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/System.php | 6 + app/view/common/layout.html | 1 + app/view/index/setpwd.html | 304 ++++++++++++++++------------------ app/view/system/loginset.html | 35 ++++ route/app.php | 1 + 5 files changed, 183 insertions(+), 164 deletions(-) create mode 100644 app/view/system/loginset.html diff --git a/app/controller/System.php b/app/controller/System.php index a072529..3828641 100644 --- a/app/controller/System.php +++ b/app/controller/System.php @@ -28,6 +28,12 @@ class System extends BaseController return json(['code' => 0, 'msg' => 'succ']); } + public function loginset() + { + if (!checkPermission(2)) return $this->alert('error', '无权限'); + return View::fetch(); + } + public function noticeset() { if (!checkPermission(2)) return $this->alert('error', '无权限'); diff --git a/app/view/common/layout.html b/app/view/common/layout.html index f1f5142..7575f4f 100644 --- a/app/view/common/layout.html +++ b/app/view/common/layout.html @@ -162,6 +162,7 @@