mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-11 23:19:05 +00:00
2.1 版本
1. 框架更新至5.8,并且其涉及代码进行修改; 2. 对支付的alipay组件针对php7.2/3进行修改; 3. 重构了节点信息获取逻辑;现在为实时请求; 4. 代码小细节和命名规范
This commit is contained in:
@@ -16,10 +16,8 @@ class IPIP
|
||||
public static function ip($ip)
|
||||
{
|
||||
$filePath = public_path('ipip.ipdb');
|
||||
|
||||
$loc = new City($filePath);
|
||||
$result = $loc->findMap($ip, 'CN');
|
||||
|
||||
return $result;
|
||||
return $loc->findMap($ip, 'CN');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user