order_no = $order_no; } /** * Execute the job. * * @return void */ public function handle() { //生成芯片数据更新订单产品部件信息 $service = new OrderTagService(); DB::beginTransaction(); try{ $service = $service->setTag($this->order_no); DB::commit(); }catch (\Exception $e){ DB::rollBack(); $this->dispatch($this->order_no); } } }