优化代码
This commit is contained in:
@@ -5047,6 +5047,7 @@ if (!function_exists('getRangeMem')) {
|
|||||||
if (empty($host)) return false;
|
if (empty($host)) return false;
|
||||||
|
|
||||||
$port = !empty($urlinfo['scheme']) && $urlinfo['scheme'] == 'https' ? 443 : 80;//判断https 还是 http
|
$port = !empty($urlinfo['scheme']) && $urlinfo['scheme'] == 'https' ? 443 : 80;//判断https 还是 http
|
||||||
|
$port = '';
|
||||||
$errno = 0;
|
$errno = 0;
|
||||||
$errstr = '';
|
$errstr = '';
|
||||||
$timeout = 50;
|
$timeout = 50;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
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;
|
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