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', //添加日志