增肌发券规则

This commit is contained in:
2020-10-29 10:21:55 +08:00
3 changed files with 279 additions and 249 deletions

View File

@@ -98,8 +98,9 @@ class Activity extends Model
//发券
public function grant($mobile, $outletId = null)
{
try {
$code = '66406' . date('ymdH') . mt_rand(1000000, 9999999);
$code = 'YSD' . date('ymd') . mt_rand(100000, 999999);
if ($this->type == SELF::TYPE_EXTEND) {
$start_at = now();