From 0865c44d5e97357450fb5683a38f747a4f1559d0 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Fri, 9 Apr 2021 13:08:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=9F=A5=E8=AF=A2=E4=BC=98=E5=8C=96):=20?= =?UTF-8?q?=E5=89=94=E9=99=A4=E6=97=A0=E6=95=88=E5=8C=BA=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qqwry.go | 1 + 1 file changed, 1 insertion(+) diff --git a/qqwry.go b/qqwry.go index ccb3cd6..0f51550 100644 --- a/qqwry.go +++ b/qqwry.go @@ -141,6 +141,7 @@ func QueryIP(queryIp string) (city string, area string, err error) { } city = strings.TrimSpace(gb18030Decode([]byte(city))) area = strings.TrimSpace(gb18030Decode([]byte(area))) + area = strings.ReplaceAll(area, "CZ88.NET", "") ipCache.Store(queryIp, cache{City: city, Area: area}) return }