From b46ffc67d73c9032ec54b627120cd12c60fcc379 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Mon, 13 Feb 2023 09:47:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hai-order/src/main/java/com/web/config/AuthConfig.java | 1 + .../java/com/web/controller/notify/CqNotifyController.java | 2 +- hai-service/src/main/java/com/hai/common/utils/BaiduUtils.java | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hai-order/src/main/java/com/web/config/AuthConfig.java b/hai-order/src/main/java/com/web/config/AuthConfig.java index 0e222d7e..488a109f 100644 --- a/hai-order/src/main/java/com/web/config/AuthConfig.java +++ b/hai-order/src/main/java/com/web/config/AuthConfig.java @@ -90,6 +90,7 @@ public class AuthConfig implements WebMvcConfigurer { .excludePathPatterns("/**/springfox-swagger-ui/**") .excludePathPatterns("/**/swagger-ui.html") .excludePathPatterns("/login/*") + .excludePathPatterns("/cqNotify/*") .excludePathPatterns("/payNotify/*") .excludePathPatterns("/telChargeCallback/*") ; diff --git a/hai-order/src/main/java/com/web/controller/notify/CqNotifyController.java b/hai-order/src/main/java/com/web/controller/notify/CqNotifyController.java index 04dff182..f7fb70d0 100644 --- a/hai-order/src/main/java/com/web/controller/notify/CqNotifyController.java +++ b/hai-order/src/main/java/com/web/controller/notify/CqNotifyController.java @@ -22,7 +22,7 @@ import java.util.*; @Controller @RequestMapping(value = "/cqNotify") -@Api(value = "通知") +@Api(value = "重庆业务通知") public class CqNotifyController { private static final Logger log = LoggerFactory.getLogger(CqNotifyController.class); diff --git a/hai-service/src/main/java/com/hai/common/utils/BaiduUtils.java b/hai-service/src/main/java/com/hai/common/utils/BaiduUtils.java index 92bcfe42..c7af2857 100644 --- a/hai-service/src/main/java/com/hai/common/utils/BaiduUtils.java +++ b/hai-service/src/main/java/com/hai/common/utils/BaiduUtils.java @@ -21,11 +21,10 @@ public class BaiduUtils { * @return */ public static JSONObject ipLocation(String ip) { + System.out.println(ip); if (ip != null) { JSONObject response = HttpsUtils.doGet("https://api.map.baidu.com/location/ip?ak=X4sSdXsohVOMb1tNiLZloD9ows5FaNjq&ip=" + ip); - log.info(response.toJSONString()); return response; - } else { return null; }