修改活动编号位数
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user