From 3b12ad9607e01de45e55e4175acc5119248dfae7 Mon Sep 17 00:00:00 2001 From: devil Date: Thu, 10 Sep 2020 09:41:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=92=E4=BB=B6=E8=B0=83=E7=94=A8=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=A0=A1=E9=AA=8C=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Plugins.php | 6 ++++++ composer.json | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/application/admin/controller/Plugins.php b/application/admin/controller/Plugins.php index d96887206..16a5c9d49 100755 --- a/application/admin/controller/Plugins.php +++ b/application/admin/controller/Plugins.php @@ -32,6 +32,12 @@ class Plugins extends Common public function __construct() { parent::__construct(); + + // 登录校验 + $this->IsLogin(); + + // 权限校验 + $this->IsPower(); } /** diff --git a/composer.json b/composer.json index f05387226..7e4c110aa 100755 --- a/composer.json +++ b/composer.json @@ -21,18 +21,11 @@ "email": "fuxiang.gong@qq.com" } ], - "require": { - "php": ">=5.6.0", - "topthink/framework": "5.1.*" - }, "autoload": { "psr-4": { "app\\": "application" } }, - "extra": { - "think-path": "thinkphp" - }, "config": { "preferred-install": "dist" } -- GitLab