|
|
@@ -10,6 +10,8 @@ use Illuminate\Foundation\Bus\Dispatchable;
|
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
use Illuminate\Support\Facades\Log;
|
|
|
+use App\Services\PaymentOrderService;
|
|
|
+use Google\Service\Adsense\Payment;
|
|
|
|
|
|
class PaymentJob implements ShouldQueue
|
|
|
{
|
|
|
@@ -46,6 +48,7 @@ class PaymentJob implements ShouldQueue
|
|
|
try {
|
|
|
Log::error('🚀 开始执行更新订单状态任务: ' . now());
|
|
|
|
|
|
+ PaymentOrderService::syncPayOrder();
|
|
|
|
|
|
// 重要:使用类名而不是 self(),避免递归
|
|
|
PaymentJob::dispatch()->delay(now()->addSeconds(15));
|