Update
parent
4082740b1c
commit
94fbe33635
|
|
@ -18,6 +18,8 @@ class OrderSimpleResource extends JsonResource
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'sn' =>$this->sn,
|
'sn' =>$this->sn,
|
||||||
'total_amount' => $this->total_amount,
|
'total_amount' => $this->total_amount,
|
||||||
|
'paied_time' => $this->paied_time?->toDateTimeString(),
|
||||||
|
'shippinged_time' => $this->shippinged_time?->toDateTimeString(),
|
||||||
'created_at' => $this->created_at->toDateTimeString(),
|
'created_at' => $this->created_at->toDateTimeString(),
|
||||||
'status' => $this->status,
|
'status' => $this->status,
|
||||||
'is_consignor' => $request->user()->id == $this->consignor_id, //是否发货人身份
|
'is_consignor' => $request->user()->id == $this->consignor_id, //是否发货人身份
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue