From 9811eb1d0106783f4c65b58890606dc689a22890 Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 29 Nov 2019 14:41:57 +0800 Subject: [PATCH] Update Plugs.php --- application/admin/controller/api/Plugs.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/application/admin/controller/api/Plugs.php b/application/admin/controller/api/Plugs.php index f29c599ca..5bd2192fe 100644 --- a/application/admin/controller/api/Plugs.php +++ b/application/admin/controller/api/Plugs.php @@ -24,14 +24,9 @@ use library\File; */ class Plugs extends Controller { - - /** - * Plugs constructor. - * @throws \think\Exception - */ - public function __construct() + + protected function initialize() { - parent::__construct(); if (!\app\admin\service\AuthService::isLogin()) { $this->error('访问授权失败,请重新登录授权再试!'); }