插件调用权限校验处理

This commit is contained in:
devil 2020-09-10 09:41:18 +08:00
parent 071987c173
commit 3b12ad9607
2 changed files with 6 additions and 7 deletions

View File

@ -32,6 +32,12 @@ class Plugins extends Common
public function __construct()
{
parent::__construct();
// 登录校验
$this->IsLogin();
// 权限校验
$this->IsPower();
}
/**

View File

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