提交代码

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("/**/swagger-ui.html")
.excludePathPatterns("/login/*")
.excludePathPatterns("/cqNotify/*")
.excludePathPatterns("/payNotify/*")
.excludePathPatterns("/telChargeCallback/*")
;

@ -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);

@ -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;
}

Loading…
Cancel
Save