订单、纠纷

This commit is contained in:
cano
2024-03-11 02:21:52 +08:00
parent 6d242ae973
commit 1161f06aeb
15 changed files with 855 additions and 53 deletions

View File

@ -1,10 +1,17 @@
<?php
namespace App\Tools;
use Godruoyi\Snowflake\Snowflake;
use Illuminate\Support\Str;
class Tools
{
//雪花算法生成唯一ID
public static function genSnowflakeId($prefix = ''): string
{
$oSnowflake = new Snowflake();
return $prefix.$oSnowflake->id();
}
//生成随机数
public static function generateRandStr($length = 8)