优化代码

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

@@ -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;
}
}