后台
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace ba;
|
||||
namespace extend\ba;
|
||||
|
||||
use app\common\library\DatabaseRoute;
|
||||
use Throwable;
|
||||
@@ -288,7 +288,7 @@ class Auth
|
||||
public function checkMenus($url, $uid):bool
|
||||
{
|
||||
$menus = $this->getUserMenus($uid);
|
||||
$file = root_path() . '/jsondata/peion.json';
|
||||
$file = BASE_PATH . DIRECTORY_SEPARATOR . '/jsondata/peion.json';
|
||||
// 检查数组
|
||||
$par_info = get_file_info($file);
|
||||
$par_info = json_decode($par_info, true);
|
||||
@@ -297,7 +297,7 @@ class Auth
|
||||
return true;
|
||||
}
|
||||
foreach ($par_info as $k => $v) {
|
||||
if(!empty($v['peion']) && strpos($url, $v['peion']) !== false) {
|
||||
if(!empty($v['peion']) && strpos($v['peion'], $url) !== false) {
|
||||
if($v['url'] == '*') {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user