mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-24 07:55:06 +08:00
!31 IP查询导致异常问题
This commit is contained in:
@ -51,7 +51,7 @@ public class IPUtils {
|
|||||||
*/
|
*/
|
||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
public static Integer getAreaId(String ip) {
|
public static Integer getAreaId(String ip) {
|
||||||
return Integer.parseInt(SEARCHER.search(ip));
|
return Integer.parseInt(SEARCHER.search(ip.trim()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user