eventName = $eventName; $this->eventId = $eventId; $this->userId = $userId; $this->value = $value; $this->currency = $currency; $this->extraCustomData = $extraCustomData; $this->pixelId = $pixelId; $this->accessToken = $accessToken; } public function handle(): void { try { // 队列里没有 Request,上报时不依赖 Request,只依赖渠道配置中的 PixelID FacebookEventService::trackEvent( $this->eventName, $this->eventId, $this->userId, $this->value, $this->currency, $this->pixelId, $this->accessToken, $this->extraCustomData ); } catch (\Throwable $e) { Log::error('FacebookServerEvent job error', [ 'event_name' => $this->eventName, 'event_id' => $this->eventId, 'user_id' => $this->userId, 'message' => $e->getMessage(), ]); } } }