This commit is contained in:
as2252258@163.com
2021-03-21 02:15:02 +08:00
parent 22aa0cce1e
commit b3d2c38d4b
+10 -1
View File
@@ -564,7 +564,7 @@ if (!function_exists('name')) {
return; return;
} }
$name = Config::get('id', false, 'system') .' '. $name; $name = Config::get('id', false, 'system') . ' ' . $name;
swoole_set_process_name($name); swoole_set_process_name($name);
} }
@@ -602,6 +602,15 @@ if (!function_exists('send')) {
} }
if (!function_exists('zero_full')) {
function zero_full(int $data = 1, int $length = 10): string
{
return sprintf('%0' . $length . 'd', $data);
}
}
if (!function_exists('redirect')) { if (!function_exists('redirect')) {