Files
ProxyPanel/app/Components/QQWry.php
兔姬桑 8ae52d8a2f 格式化
2020-08-05 03:20:33 +08:00

21 lines
304 B
PHP

<?php
namespace App\Components;
use itbdw\Ip\IpLocation;
class QQWry {
/**
* 查询IP地址的详细信息
*
* @param string $ip IPv4
*
* @return array
*/
public static function ip($ip) {
$filePath = public_path('qqwry.dat');
return IpLocation::getLocation($ip, $filePath);
}
}