优化代码

This commit is contained in:
2026-01-04 15:34:23 +08:00
parent dffbb12d29
commit 437c5796ea
2 changed files with 77 additions and 69 deletions

View File

@@ -698,9 +698,7 @@ if (!function_exists('is_dev')) {
if (in_array($env, ['dev', 'development', 'local', 'test'], true)) {
return true;
}
if (app()->environment('dev') || app()->environment('local') || app()->environment('test')) {
return true;
}
return false;
}
}