get_son_agency_account(); } public function index(Request $request, Index $model) { $son_agency = $this->son_agency; $index_config = config('admin.index'); //默认密码修改检测 $password_danger = 0; if (1 === ((int)$this->user->id) && $index_config['password_warning'] && password_verify('super_admin', base64_decode($this->user->password))) { $password_danger = 1; } //是否首页显示提示信息 $show_notice = $index_config['show_notice']; //提示内容 $notice_content = $index_config['notice_content']; $this->assign([ //系统信息 'system_info' => SystemInfo::getSystemInfo(), //访问信息 'visitor_info' => $request, //默认密码警告 'password_danger' => $password_danger, //当前用户 'user' => $this->user, //是否显示提示信息 'show_notice' => $show_notice, //提示内容 'notice_content' => $notice_content, 'data' => $model::index_data($this->user, $this->son_agency, $this->directlySon), ]); return $this->fetch(); } }