|
|
|
@ -54,6 +54,7 @@ class SyncAlipayRechargeState extends Command
|
|
|
|
->whereRaw("UNIX_TIMESTAMP(`created_at`) between " . (time() + $offset_seconds) . " and " . (time() + $due_minutes * 60 + $offset_seconds))
|
|
|
|
->whereRaw("UNIX_TIMESTAMP(`created_at`) between " . (time() + $offset_seconds) . " and " . (time() + $due_minutes * 60 + $offset_seconds))
|
|
|
|
->limit($threshold)
|
|
|
|
->limit($threshold)
|
|
|
|
->get();
|
|
|
|
->get();
|
|
|
|
|
|
|
|
dump(DB::getQueryLog());
|
|
|
|
dd($recharges);
|
|
|
|
dd($recharges);
|
|
|
|
if (!$recharges->count()) {
|
|
|
|
if (!$recharges->count()) {
|
|
|
|
cache(['last_sync_alipay_recharge_id' => null], now()->addSeconds(90));
|
|
|
|
cache(['last_sync_alipay_recharge_id' => null], now()->addSeconds(90));
|
|
|
|
|