From 1e69cbfdff7e88d13bd3bb1a5d123c48a430a097 Mon Sep 17 00:00:00 2001 From: xuanchen <122383162@qq.com> Date: Wed, 7 Apr 2021 09:56:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E7=94=9F=E6=88=90=E5=88=B8?= =?UTF-8?q?=E7=A0=81=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Activity.php | 4 ++-- config/unionpay.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/Activity.php b/app/Models/Activity.php index d7eca96..27062ee 100644 --- a/app/Models/Activity.php +++ b/app/Models/Activity.php @@ -109,9 +109,9 @@ class Activity extends Model try { //判断生成何种码 if ($this->channel == self::CHANNEL_UNION) { - $code = '66406' . date('ymdH') . mt_rand(1000000, 9999999); + $code = '66406' . date('ymdHi') . mt_rand(10000, 99999); } else { - $code = 'YSD' . date('ymd') . mt_rand(100000, 999999); + $code = 'YSD' . substr(date('ymdHi'), 1) . mt_rand(100, 999); } if ($this->type == SELF::TYPE_EXTEND) { diff --git a/config/unionpay.php b/config/unionpay.php index d2b0991..6332099 100644 --- a/config/unionpay.php +++ b/config/unionpay.php @@ -3,7 +3,7 @@ return [ 'user_model' => \App\Models\User::class, //是否调试 - 'debug' => true, + 'debug' => false, //环境变量 'this_type' => 'dev', //添加日志