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 @@