!31 IP查询导致异常问题

pull/2/head
YunaiV 2023-04-02 19:01:46 +08:00
parent bb0110656b
commit b9ba17a477
1 changed files with 1 additions and 1 deletions

View File

@ -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()));
} }
/** /**