[ 'name' => ConfigServer::get('website', 'name'), 'web_favicon' => ConfigServer::get('website', 'web_favicon'), 'backstage_logo' => ConfigServer::get('website_platform', 'platform_admin_logo'),//主页左上角logo ], 'menu' => MenuServer::getMenuTree($this->adminUser['role_id']), // 菜单渲染 'view_app_trace' => Config::get('app.app_trace'), // 开启右上角前端示例 'admin_name' => $this->adminUser['name'],//管理员名称 'role_name' => (new Role())->getRoleName($this->adminUser['role_id']), // 角色名称 ]); } /** * 工作台 * @return mixed */ public function stat() { if($this->request->isAjax()){ return JsonServer::success('', StatLogic::graphData()); } return view('', [ 'res' => StatLogic::stat() ]); } /** * 工作台商家数据 * @return mixed */ public function shop() { if ($this->request->isAjax()) { $get = $this->request->get(); return JsonServer::success('', StatLogic::shopLists($get)); } } }