From b9ba17a477266a16c77bfeea2a606aa17f634fd4 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 2 Apr 2023 19:01:46 +0800 Subject: [PATCH] =?UTF-8?q?!31=20IP=E6=9F=A5=E8=AF=A2=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/iocoder/yudao/framework/ip/core/utils/IPUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-framework/yudao-spring-boot-starter-biz-ip/src/main/java/cn/iocoder/yudao/framework/ip/core/utils/IPUtils.java b/yudao-framework/yudao-spring-boot-starter-biz-ip/src/main/java/cn/iocoder/yudao/framework/ip/core/utils/IPUtils.java index 8ad794637..f74f84864 100644 --- a/yudao-framework/yudao-spring-boot-starter-biz-ip/src/main/java/cn/iocoder/yudao/framework/ip/core/utils/IPUtils.java +++ b/yudao-framework/yudao-spring-boot-starter-biz-ip/src/main/java/cn/iocoder/yudao/framework/ip/core/utils/IPUtils.java @@ -51,7 +51,7 @@ public class IPUtils { */ @SneakyThrows public static Integer getAreaId(String ip) { - return Integer.parseInt(SEARCHER.search(ip)); + return Integer.parseInt(SEARCHER.search(ip.trim())); } /**