|
|
|
|
@ -50,7 +50,7 @@ class SyncAlipayRechargeState extends Command
|
|
|
|
|
->where("id", ">", $last_id)
|
|
|
|
|
->whereNull("paid_at")
|
|
|
|
|
->where("payment", "alipay")
|
|
|
|
|
->whereRaw("(UNIX_TIMESTAMP(`created_at`) between (UNIX_TIMESTAMP(`created_at`) + {$offset_seconds}) and (UNIX_TIMESTAMP(`created_at`) + " . ($due_minutes * 60) . " + {$offset_seconds}))")
|
|
|
|
|
->whereRaw("(" . time() . " between (UNIX_TIMESTAMP(`created_at`) + {$offset_seconds}) and (UNIX_TIMESTAMP(`created_at`) + " . ($due_minutes * 60) . " + {$offset_seconds}))")
|
|
|
|
|
->limit($threshold)
|
|
|
|
|
->get();
|
|
|
|
|
dump(DB::getQueryLog());
|
|
|
|
|
|