diff --git a/app/services/system/SystemAuthService.php b/app/services/system/SystemAuthService.php index 3dd3bf3bad30e8a70ff6e369eb0eb2e0c8460e62..5bdba959688575b304321def876260b47b520388 100644 --- a/app/services/system/SystemAuthService.php +++ b/app/services/system/SystemAuthService.php @@ -129,7 +129,7 @@ class SystemAuthService extends BaseService { /**@var SystemMenuService $systemMenuService */ $systemMenuService = Container::make(SystemMenuService::class); - $list = $systemMenuService->dao->selectList($where, '*', 0, 0, 'sort asc', [], true); + $list = $systemMenuService->selectList($where, '*', 0, 0, 'sort asc', [], true); //兼容LaORM if ($list instanceof \Illuminate\Database\Eloquent\Collection) { $list->makeVisible(['id', 'pid', 'type', 'sort', 'redirect', 'path', 'name', 'meta', 'component']); diff --git a/app/services/system/SystemMenuService.php b/app/services/system/SystemMenuService.php index 6b8f4823d50f54d74e3b7853f8d3a606e425f44c..0d9089cd7a5c3deb6b8e843fa9b57005e6a76c82 100644 --- a/app/services/system/SystemMenuService.php +++ b/app/services/system/SystemMenuService.php @@ -24,10 +24,6 @@ use support\Request; */ class SystemMenuService extends BaseService { - /** - * @var SystemMenuDao $dao - */ - public $dao; public function __construct() { $this->dao = Container::make(SystemMenuDao::class);