auth->getUserinfo(); $this->config = new ConfigLibrary(); if($this->config->getCommissionLevel() === 0) { $this->success('分销中心已关闭', [ 'status' => 'close', 'msg' => '分销中心已关闭' ]); } $this->agent = new AgentLibrary($user['id']); $agentInfo = $this->agent->getAgentInfo(); if($agentInfo['status'] === AgentLibrary::AGENT_STATUS_FORBIDDEN) { $this->success('您的账户被禁用', [ 'status' => $agentInfo['status'], 'msg' => $agentInfo['msg'] ]); } } }