thefunpower/sony_flake_id

用于生成订单号

v2.1.3 2023-11-29 04:00 UTC

This package is auto-updated.

Last update: 2024-04-29 05:06:08 UTC


README

生成sony_flake

配置

$config['redis'] = [
  'host'=>'',
  'port'=>'',
  'auth'=>'', 
];

$config['sony_flake'] = [ 
  'from_date'=>'2022-10-27',
];
thefunpower\sonyflake\id::set($config);

生成

thefunpower\sonyflake\id::create($center_id=0,$work_id=1)

License

Apache License 2.0