From e618f8e404bc7668b0f16c882133240ccdcd9753 Mon Sep 17 00:00:00 2001 From: Chasel Date: Tue, 21 Mar 2023 14:25:03 +0800 Subject: [PATCH] =?UTF-8?q?https://gitee.com/zhijiantianya/yudao-cloud/iss?= =?UTF-8?q?ues/I6KP0U=20=E4=BF=AE=E5=A4=8Dip=E7=A9=BA=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E5=BC=95=E8=B5=B7=E7=9A=84=E5=BC=82=E5=B8=B8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yudao/module/system/controller/admin/ip/AreaController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ip/AreaController.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ip/AreaController.java index 25b7cfba2..c9db25234 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ip/AreaController.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/ip/AreaController.java @@ -39,7 +39,7 @@ public class AreaController { @Parameter(name = "ip", description = "IP", required = true) public CommonResult getAreaByIp(@RequestParam("ip") String ip) { // 获得城市 - Area area = IPUtils.getArea(ip); + Area area = IPUtils.getArea(ip.trim()); if (area == null) { return success("未知"); }