diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 8d3667f8ac..1d6a12de98 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -2994,7 +2994,7 @@ class baseRouter * 删除设定时间之前的日志。 * Delete the log before the set time. **/ - if(random_int(0, 10) == 1) + if(mt_rand(0, 10) == 1) { $logDays = $this->config->framework->logDays ?? 14; $dayTime = time() - $logDays * 24 * 3600;