This commit is contained in:
2022-07-06 10:28:26 +08:00
committed by jhx
parent 987c04596c
commit 5dc1af92f1
4 changed files with 143 additions and 1 deletions
+3 -1
View File
@@ -11,7 +11,9 @@ class Index
{
$ip = $request->getRealIp();
$location = IpLocation::getLocation($ip);
$filepath = '/usr/src/myapp/lib/qqwry.dat';
$location = IpLocation::getLocation($ip, $filepath);
return json(['ip' => $ip, 'location' => $location]);
}