微调
This commit is contained in:
@@ -99,7 +99,7 @@ class Activity extends Model
|
|||||||
public function grant($mobile, $outletId = null)
|
public function grant($mobile, $outletId = null)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$code = '66406' . date('ymd') . mt_rand(100000, 999999);
|
$code = '66406' . date('ymdH') . mt_rand(1000000, 9999999);
|
||||||
|
|
||||||
if ($this->type == SELF::TYPE_EXTEND) {
|
if ($this->type == SELF::TYPE_EXTEND) {
|
||||||
$start_at = now();
|
$start_at = now();
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
|
|
||||||
namespace XuanChen\Coupon;
|
namespace XuanChen\Coupon;
|
||||||
|
|
||||||
use App\Models\Activity;
|
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Illuminate\Support\Facades\DB;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 自有卡券系统
|
* 自有卡券系统
|
||||||
|
|||||||
Reference in New Issue
Block a user