diff --git a/beike/Shop/Http/Resources/RmaDetail.php b/beike/Shop/Http/Resources/RmaDetail.php index 52eb182d..ada5c4ae 100644 --- a/beike/Shop/Http/Resources/RmaDetail.php +++ b/beike/Shop/Http/Resources/RmaDetail.php @@ -11,18 +11,21 @@ namespace Beike\Shop\Http\Resources; +use Beike\Repositories\RmaRepo; use Illuminate\Http\Resources\Json\JsonResource; class RmaDetail extends JsonResource { public function toArray($request): array { + $types = RmaRepo::getTypes(); + return [ 'id' => $this->id, 'order_product_id' => $this->order_product_id, 'quantity' => $this->quantity, 'opened' => $this->opened, - 'type' => $this->type, + 'type' => $types[$this->type], 'comment' => $this->comment, 'status' => $this->status, 'created_at' => time_format($this->created_at), diff --git a/themes/default/account/account.blade.php b/themes/default/account/account.blade.php index 5e195e5a..93d80a8f 100644 --- a/themes/default/account/account.blade.php +++ b/themes/default/account/account.blade.php @@ -54,7 +54,7 @@ class="text-muted">待发货 待收货 - 售后