logistic_number = $logistic_number; } /** * Execute the job. * * @return void */ public function handle() { LogService::log(LogisticYTOSync::class, "JOB-YTO", $this->logistic_number); $this->logisticYTOService = app('LogisticYTOService'); $nativeResponse = $this->logisticYTOService->query($this->logistic_number); $formattedData = $this->logisticYTOService->format($nativeResponse,$this->logistic_number); $this->orderPackageReceivedSyncService = app('OrderPackageReceivedSyncService'); if (count($formattedData)>0 && $formattedData['logistic_number']??false){ $this->orderPackageReceivedSyncService->update([$formattedData]); }else{ LogService::log(LogisticYTOService::class, "YTO快递无快递单号异常", $formattedData); } } }