Commit c1b7e081 by 杨树贤

全局变量

parent a535377c
Showing with 1 additions and 0 deletions
......@@ -23,6 +23,7 @@ class CheckIp
$ip = $request->ip();
$result = geoip($ip);
if (in_array($result->iso_code, config('field.disable_ip_iso_code'))) {
view()->share('is_disable_ip', true);
return redirect()->to('/info');
}
return $next($request);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment