try{
DB::transaction(function () use ($orderParser, $json, $e_poi) { $order = $orderParser->parse($json); event(new OrderPushed($order, Carbon::now(), $e_poi['poi_id'], $json['order']['orderId'], $json)); });
}catch(\Illuminate\Database\QueryException $ex){
return back() -> with(['info' => '抱歉,修改失败,请稍后重试!']);
}