user(); return $this->render([ 'user' => $user, ]); } public function infoAction() { return InfoService::getInfo("abv"); } // 首页登录指南页面 public function helpAction() { return $this->render(); } // 技术支持 public function supportAction() { return $this->render(); } /* * 通用对话框 */ public function dialogAction() { $gets = Request::all(); return $this->render([ 'gets' => $gets ]); } // 获取单个待办数量 public function badgeAction() { $key = Request::input('key'); if ($key) { $badge = ModuleService::badges($key); if ($badge) { return response()->json($badge()); } } return response()->json(['total' => 0, 'data' => []]); } // 获取全部待办数量 public function badgesAction() { $badges = ModuleService::badges(); $json = []; foreach($badges as $key => $badge) { $json[$key] = $badge(); } return response()->json($json); } }