update
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user