loadAdminInfo(); } /** * 加载管理员信息 */ protected function loadAdminInfo() { $this->adminId = $this->request->hasMacro('adminId') ? (int)$this->request->adminId() : 0; $this->adminInfo = $this->request->hasMacro('adminInfo') ? (array)$this->request->adminInfo() : []; $this->adminType = $this->adminInfo['admin_type'] ?? 1; if ($this->adminType == 4) { $this->supplierId = $this->adminId; } $this->auth = $this->adminInfo['rule'] ?? []; } }