This commit is contained in:
2020-10-29 10:15:02 +08:00
2 changed files with 1 additions and 3 deletions

View File

@@ -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();

View File

@@ -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;
/** /**
* 自有卡券系统 * 自有卡券系统