6
0
Fork 0

修改售后订单号生成规则

release
vine_liutk 2021-12-15 12:04:13 +08:00
parent 51610a32aa
commit f442958439
1 changed files with 3 additions and 1 deletions

View File

@ -152,6 +152,8 @@ class AfterSale extends Model
*/
protected static function createSn()
{
return 'AS'.now()->format('YmdHisu').strtoupper(Str::random(2));
$rand = strtoupper(Str::random(6));
return 'AS'.date('ymdHis').$rand;
}
}