feat : admin driver name
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Cache\Redis\Admin;
|
||||
|
||||
use App\Cache\Redis\RedisCache;
|
||||
use App\Constants\Admin\AuthCode;
|
||||
use App\Constants\Common\RoleCode;
|
||||
use App\Model\AdminMenu;
|
||||
use App\Model\AdminRoleMenu;
|
||||
use App\Service\ServiceTrait\Admin\AdminRoleMenuTrait;
|
||||
@@ -81,7 +82,7 @@ class RoleCache
|
||||
];
|
||||
}
|
||||
|
||||
if ($this->roleId == AuthCode::SUPERADMIN) {
|
||||
if ($this->roleId == RoleCode::SUPER_ADMIN) {
|
||||
$menuIds = $this->adminMenuModel->getAllIds();
|
||||
$data = (new MenuCache)->getMenu();
|
||||
// $menuList = $this->adminMenuModel->getAllMenu();
|
||||
|
||||
Reference in New Issue
Block a user