/** * 显示订单内容 * * @param int $id * @param string $type 内容模型类型 * @return Illuminate\Support\Collection */ public function show($id) { $order = $this->order->findOrFail($id); $order->merchant = $this->merchant->findOrFail($order->merchant_id); $order->goods = json_decode($order->product_json); return $order; }