thefunpower/sony_flake_id

用于生成订单号

Installs: 214

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/thefunpower/sony_flake_id

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

This package is auto-updated.

Last update: 2025-09-29 03:13:47 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