This commit is contained in:
2025-08-19 17:30:51 +08:00
parent fd44965f8a
commit 353c72c602
74 changed files with 10575 additions and 44 deletions

View File

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