更改生成券码规则
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
return [
|
||||
'user_model' => \App\Models\User::class,
|
||||
//是否调试
|
||||
'debug' => true,
|
||||
'debug' => false,
|
||||
//环境变量
|
||||
'this_type' => 'dev',
|
||||
//添加日志
|
||||
|
||||
Reference in New Issue
Block a user