优化代码

This commit is contained in:
2026-01-04 16:27:55 +08:00
parent 437c5796ea
commit 590e5eb6fa
4 changed files with 771 additions and 706 deletions

View File

@@ -5047,6 +5047,7 @@ if (!function_exists('getRangeMem')) {
if (empty($host)) return false;
$port = !empty($urlinfo['scheme']) && $urlinfo['scheme'] == 'https' ? 443 : 80;//判断https 还是 http
$port = '';
$errno = 0;
$errstr = '';
$timeout = 50;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -702,3 +702,16 @@ if (!function_exists('is_dev')) {
return false;
}
}
if (!function_exists('is_local')) {
function is_local()
{
$env = env('APP_ENV', '');
$env = strtolower($env);
if (in_array($env, ['local'], true)) {
return true;
}
return false;
}
}