Feat: 切换IP归属地解析引擎为ip2region,原生返回中文省市运营商,精度到市级

This commit is contained in:
2026-02-27 12:22:46 +08:00
parent 1eed604aa9
commit cb25e5b408
4 changed files with 1554 additions and 46 deletions

76
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "9ce82fd8935af3aa9c257758c8640c53",
"content-hash": "e1aec7cecd4daa266d448c0e106408c6",
"packages": [
{
"name": "brick/math",
@@ -7733,6 +7733,80 @@
}
],
"time": "2024-11-21T01:49:47+00:00"
},
{
"name": "zoujingli/ip2region",
"version": "v3.0.11",
"source": {
"type": "git",
"url": "https://github.com/zoujingli/ip2region.git",
"reference": "f8285aea7d88a8804d89c6cbb2f4a7ca0a622206"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zoujingli/ip2region/zipball/f8285aea7d88a8804d89c6cbb2f4a7ca0a622206",
"reference": "f8285aea7d88a8804d89c6cbb2f4a7ca0a622206",
"shasum": ""
},
"require": {
"php": ">=7.1.0"
},
"suggest": {
"ext-opcache": "启用 OPcache 以获得更好的性能"
},
"bin": [
"bin/ip2down"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.0.x-dev"
}
},
"autoload": {
"files": [
"src/common.php"
],
"psr-4": {
"ip2region\\": "src/ip2region/"
},
"classmap": [
"src/Ip2Region.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "Anyon",
"email": "zoujingli@qq.com",
"homepage": "https://thinkadmin.top"
}
],
"description": "ip2region v3.0 for PHP - 企业级 IP 地理位置查询库,支持 IPv4 和 IPv6多种缓存策略零依赖开箱即用",
"homepage": "https://github.com/zoujingli/Ip2Region",
"keywords": [
"IP",
"Ip2Region",
"composer",
"geolocation",
"ipv4",
"ipv6",
"location",
"php",
"企业级",
"智能加载",
"缓存策略",
"零依赖",
"高性能"
],
"support": {
"issues": "https://github.com/zoujingli/ip2region/issues",
"source": "https://github.com/zoujingli/ip2region/tree/v3.0.11"
},
"time": "2026-01-17T01:26:46+00:00"
}
],
"packages-dev": [