user = $this->getUser(); // 分销商用户信息 $this->dealer = DealerUserModel::detail($this->user['user_id']); // 分销商设置 $this->setting = Setting::getAll(); } /** * 我的团队列表 * @param int $level * @return array * @throws \think\exception\DbException */ public function lists($level = -1) { $model = new RefereeModel; return $this->renderSuccess([ // 分销商用户信息 'dealer' => $this->dealer, // 我的团队列表 'list' => $model->getList($this->user['user_id'], (int)$level), // 基础设置 'setting' => $this->setting['basic']['values'], // 页面文字 'words' => $this->setting['words']['values'], ]); } }