thefunpower/sony_flake_id

用于生成订单号

v2.1.4 2024-05-31 09:06 UTC

This package is auto-updated.

Last update: 2024-12-01 00:07:49 UTC


README

配置

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

$config['sony_flake'] = [ 
  'from_date'=>'2022-10-27',
];

调用

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

License

Apache License 2.0