修改活动编号位数

This commit is contained in:
2020-08-25 13:44:25 +08:00
parent 168d40dbb1
commit 04a74e763e

View File

@@ -40,7 +40,7 @@ class Activity extends Model
parent::boot(); parent::boot();
self::creating(function ($model) { self::creating(function ($model) {
$model->code = 'ysd' . date('Ym') . mt_rand(11, 99); $model->code = 'ysd' . date('Ym') . mt_rand(100, 999);
}); });
} }