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