This commit is contained in:
as2252258@163.com
2021-03-24 01:25:38 +08:00
parent 94818ee71f
commit 34050d241d
+22
View File
@@ -0,0 +1,22 @@
<?php
namespace Snowflake\Core;
class Number
{
/**
* @param int $userId
* @return string
*/
public static function order(int $userId): string
{
$explode = current(explode(' ', str_replace('0.', '', microtime())));
return 'No.' . sprintf('%09d', $userId) . '.' . date('Ymd.His') . '.' . $explode;
}
}