mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-02 21:52:34 +08:00
数组语法调整
This commit is contained in:
@@ -1258,7 +1258,7 @@ class Request
|
||||
}
|
||||
// IP地址合法验证
|
||||
$long = sprintf("%u", ip2long($ip));
|
||||
$ip = $long ? array($ip, $long) : array('0.0.0.0', 0);
|
||||
$ip = $long ? [$ip, $long] : ['0.0.0.0', 0];
|
||||
return $ip[$type];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user