fix: 补全 IP2Location 中国城市中文映射并按省消歧

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-31 08:40:12 +08:00
parent c6ce44f8b4
commit 34f3d088ad
5 changed files with 1080 additions and 77 deletions

View File

@@ -35,7 +35,7 @@
CDN 头(如 `CF-IPCountry`)仅在本地库无国家码时补全。不落 Lat/Lon/Zip/TimeZone。管理端展示**完整客户端 IP**。
写入时做本地中文映射(省/常见城市/运营商);`country` 存 ISO2展示用中文名
写入时做本地中文映射(省 / 中国城市按 IP2Location 英文名 / 运营商);同音城市(如苏州/宿州)按省份歧义。`country` 存 ISO2展示用中文名。历史 `page_views` / 请求日志不会回写,仅影响新写入
## 写入路径(性能)