提交代码

dev-discount
胡锐 2 years ago
parent 1636251dcc
commit b46ffc67d7
  1. 1
      hai-order/src/main/java/com/web/config/AuthConfig.java
  2. 2
      hai-order/src/main/java/com/web/controller/notify/CqNotifyController.java
  3. 3
      hai-service/src/main/java/com/hai/common/utils/BaiduUtils.java

@ -90,6 +90,7 @@ public class AuthConfig implements WebMvcConfigurer {
.excludePathPatterns("/**/springfox-swagger-ui/**") .excludePathPatterns("/**/springfox-swagger-ui/**")
.excludePathPatterns("/**/swagger-ui.html") .excludePathPatterns("/**/swagger-ui.html")
.excludePathPatterns("/login/*") .excludePathPatterns("/login/*")
.excludePathPatterns("/cqNotify/*")
.excludePathPatterns("/payNotify/*") .excludePathPatterns("/payNotify/*")
.excludePathPatterns("/telChargeCallback/*") .excludePathPatterns("/telChargeCallback/*")
; ;

@ -22,7 +22,7 @@ import java.util.*;
@Controller @Controller
@RequestMapping(value = "/cqNotify") @RequestMapping(value = "/cqNotify")
@Api(value = "通知") @Api(value = "重庆业务通知")
public class CqNotifyController { public class CqNotifyController {
private static final Logger log = LoggerFactory.getLogger(CqNotifyController.class); private static final Logger log = LoggerFactory.getLogger(CqNotifyController.class);

@ -21,11 +21,10 @@ public class BaiduUtils {
* @return * @return
*/ */
public static JSONObject ipLocation(String ip) { public static JSONObject ipLocation(String ip) {
System.out.println(ip);
if (ip != null) { if (ip != null) {
JSONObject response = HttpsUtils.doGet("https://api.map.baidu.com/location/ip?ak=X4sSdXsohVOMb1tNiLZloD9ows5FaNjq&ip=" + ip); JSONObject response = HttpsUtils.doGet("https://api.map.baidu.com/location/ip?ak=X4sSdXsohVOMb1tNiLZloD9ows5FaNjq&ip=" + ip);
log.info(response.toJSONString());
return response; return response;
} else { } else {
return null; return null;
} }

Loading…
Cancel
Save