设置角色组
This commit is contained in:
@@ -547,7 +547,7 @@ if (!function_exists('convert_keys_to_camelcase')) {
|
||||
if (!function_exists('generate_order_sn')) {
|
||||
function generate_order_sn($prefix = '', $digits = 10)
|
||||
{
|
||||
$sn = date('Ymd') . substr(implode(NULL, array_map('ord', str_split(substr(uniqid(), 7, 13), 1))), 0, $digits);
|
||||
$sn = date('Ymd') . substr(implode('', array_map('ord', str_split(substr(uniqid(), 7, 13), 1))), 0, $digits);
|
||||
return strtoupper($prefix) . $sn;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user