mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
去除 IS_CGI IS_MAC NOW_TIME 常量
This commit is contained in:
@@ -976,7 +976,7 @@ class Validate
|
||||
if (!is_numeric($end)) {
|
||||
$end = strtotime($end);
|
||||
}
|
||||
return NOW_TIME >= $start && NOW_TIME <= $end;
|
||||
return $_SERVER['REQUEST_TIME'] >= $start && $_SERVER['REQUEST_TIME'] <= $end;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user