$this->sn, 'product'=>OrderProductResource::collection($this->products), 'total_amount' => $this->total_amount, 'created_at' => $this->created_at->toDateTimeString(), 'status' => $this->status, 'pay_info' => $this->pay_info??$this->consignor->dealer->pay_info, 'pay_image'=> $this->pay_image, 'is_consignor' => $request->user()->id == $this->consignor_id, //是否发货人身份 ]; } }