更改生成券码规则

This commit is contained in:
2021-04-07 09:56:56 +08:00
parent 57a96476d4
commit 1e69cbfdff
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {