优化代码
This commit is contained in:
13
vendor/topthink/framework/src/helper.php
vendored
13
vendor/topthink/framework/src/helper.php
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user