From efc82fd229e1c88711b0463db40b8e6222f9e5b2 Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Wed, 05 Jun 2024 16:33:59 +0800 Subject: [PATCH] 部署香港服务器 --- src/main/java/cc/mrbird/febs/system/controller/ViewController.java | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/system/controller/ViewController.java b/src/main/java/cc/mrbird/febs/system/controller/ViewController.java index 21b84b1..03f9e7d 100644 --- a/src/main/java/cc/mrbird/febs/system/controller/ViewController.java +++ b/src/main/java/cc/mrbird/febs/system/controller/ViewController.java @@ -38,6 +38,12 @@ @GetMapping("login") @ResponseBody public Object login(HttpServletRequest request) { + if (request.getRequestURL().indexOf("api.shadowplan.cc") > 0) { + ModelAndView mav = new ModelAndView(); + mav.setViewName(FebsUtil.view("error/error")); + return mav; + } + if (FebsUtil.isAjaxRequest(request)) { throw new ExpiredSessionException(); } else { @@ -55,7 +61,9 @@ @GetMapping("/") public String redirectIndex(HttpServletRequest request) { - log.info("请求地址:{}",request.getRequestURL()); + if (request.getRequestURL().indexOf("api.birdworld.vip") > 0) { + return FebsUtil.view("error/error"); + } return "redirect:/index"; } -- Gitblit v1.9.1