Update
parent
6d1c71c209
commit
5327ea8c6b
|
|
@ -38,18 +38,6 @@ if (! function_exists('serial_number')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! function_exists('serial_number')) {
|
|
||||||
/**
|
|
||||||
* 生成流水号
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
function serial_number(): string
|
|
||||||
{
|
|
||||||
return date('YmdHis').sprintf('%06d', mt_rand(1, 999999));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (! function_exists('trim_trailing_zeros')) {
|
if (! function_exists('trim_trailing_zeros')) {
|
||||||
/**
|
/**
|
||||||
* 去除数字字符串小数点后多余的 0
|
* 去除数字字符串小数点后多余的 0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue