mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-01 15:31:03 +00:00
【程序目录】更新雪花算法
This commit is contained in:
parent
d2addf80b8
commit
b420ef3610
@ -64,7 +64,7 @@ class StoreOrderCreateServices extends BaseServices
|
||||
$snowflake = new \Godruoyi\Snowflake\Snowflake();
|
||||
|
||||
if (Config::get('cache.default') == 'file') {
|
||||
//32位
|
||||
//32位
|
||||
if (PHP_INT_SIZE == 4) {
|
||||
$id = abs($snowflake->id());
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user