waybill = $waybill; } /** * Execute the job. * * @param WaybillService $service * @return void * @throws */ public function handle(WaybillService $service) { try{ $service->createInstantBill($this->waybill); }catch (\Exception $e){ LogService::log(__METHOD__,"ERROR-运输计算运费失败",$this->waybill->toJson()." | ".$e->getMessage()); throw new \Exception($e->getMessage()); } } }