|
|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
|
|
|
|
|
|
use App\Libs\AlipayF2F;
|
|
|
|
|
use App\Models\Recharge;
|
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
|
@ -52,6 +53,7 @@ class SyncAlipayRechargeState extends Command
|
|
|
|
|
->whereRaw("UNIX_TIMESTAMP(`created_at`) between " . (time() + $offset_seconds) . " and " . (time() + $due_minutes * 60 + $offset_seconds))
|
|
|
|
|
->limit($threshold)
|
|
|
|
|
->get();
|
|
|
|
|
dd($recharges);
|
|
|
|
|
if (!$recharges->count()) {
|
|
|
|
|
cache(['last_sync_alipay_recharge_id' => null], now()->addSeconds(90));
|
|
|
|
|
echo "nothing";
|
|
|
|
|
@ -59,7 +61,7 @@ class SyncAlipayRechargeState extends Command
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach ($recharges as $recharge) {
|
|
|
|
|
$result = (new WxMicroPay())->manualQuery($recharge);
|
|
|
|
|
$result = (new AlipayF2F())->manualQuery($recharge);
|
|
|
|
|
dump($result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|