Update Plugs.php

This commit is contained in:
Anyon 2019-11-29 14:41:57 +08:00
parent b094b8149e
commit 9811eb1d01

View File

@ -25,13 +25,8 @@ 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('访问授权失败,请重新登录授权再试!');
}