设置角色组

This commit is contained in:
Dev
2026-10-17 16:29:14 +08:00
parent 2d342bcbd7
commit 8a3f133488
8 changed files with 89 additions and 10 deletions
+1 -1
View File
@@ -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;
}
}