mirror of
https://github.com/xiaoqidun/qqwry.git
synced 2026-09-19 15:03:13 +08:00
feat(查询优化): 剔除无效区域
This commit is contained in:
1 parent
35d03559c6
commit
0865c44d5e
1 file changed
+1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user