Files
ProxyPanel/app/Components/QQWry.php
2020-08-05 03:51:29 +08:00

21 lines
313 B
PHP

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