6
0
Fork 0

调整订单配合售后添加字段

release
vine_liutk 2022-01-06 15:18:34 +08:00
parent 71ed5fd889
commit 5223870d26
2 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class AfterSaleResource extends JsonResource
'sell_price' => bcdiv($this->orderProduct->total_amount, $this->orderProduct->quantity * 100, 2),
'num'=> $this->num,
'is_gift' => $this->orderProduct->isGift(),
'total_amount' => $this->orderProduct->total_amount,
],
'state' => $this->after_sale_state,
'type' => $this->type,

View File

@ -22,6 +22,7 @@ class OrderProductResource extends JsonResource
'specs' => array_values((array) $this->specs),
'sell_price' => $this->sell_price_format,
'vip_price' => $this->vip_price_format,
'total_amount' => $this->total_amount,
'quantity' => $this->quantity,
'can_after_sale' => $this->can_after_sale,
'is_gift' => $this->isGift(),