From f0239b8f6279841fd0b171ffcf71d009d3ab91d0 Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Tue, 7 Feb 2023 17:53:30 +0800 Subject: [PATCH] fixed order list resource --- beike/Shop/Http/Resources/Account/OrderList.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/beike/Shop/Http/Resources/Account/OrderList.php b/beike/Shop/Http/Resources/Account/OrderList.php index f1c905f2..9ebac02b 100644 --- a/beike/Shop/Http/Resources/Account/OrderList.php +++ b/beike/Shop/Http/Resources/Account/OrderList.php @@ -18,8 +18,11 @@ class OrderList extends JsonResource public function toArray($request): array { $data = [ - 'id' => $this->id, - 'number' => $this->number, + 'id' => $this->id, + 'number' => $this->number, + 'status_format' => $this->status_format, + 'next_status' => $this->getNextStatuses(), + 'status' => $this->status, ]; return $data;