modify
This commit is contained in:
+10
-1
@@ -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')) {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user