From 04a74e763e282f4e7d49beede7c97fa663892e09 Mon Sep 17 00:00:00 2001 From: xuanchen <122383162@qq.com> Date: Tue, 25 Aug 2020 13:44:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B4=BB=E5=8A=A8=E7=BC=96?= =?UTF-8?q?=E5=8F=B7=E4=BD=8D=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Activity.php b/app/Models/Activity.php index 6c477c3..426dd5a 100644 --- a/app/Models/Activity.php +++ b/app/Models/Activity.php @@ -40,7 +40,7 @@ class Activity extends Model parent::boot(); self::creating(function ($model) { - $model->code = 'ysd' . date('Ym') . mt_rand(11, 99); + $model->code = 'ysd' . date('Ym') . mt_rand(100, 999); }); }