From 1b240912bee57566f6de4fc2d281432ba0faf091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Wed, 23 Feb 2022 17:47:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=A2=E5=8D=95=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Endpoint/Api/Http/Resources/OrderResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Endpoint/Api/Http/Resources/OrderResource.php b/app/Endpoint/Api/Http/Resources/OrderResource.php index ae989e1c..8f18d737 100644 --- a/app/Endpoint/Api/Http/Resources/OrderResource.php +++ b/app/Endpoint/Api/Http/Resources/OrderResource.php @@ -36,7 +36,7 @@ class OrderResource extends JsonResource 'consignee_telephone' => $this->consignee_telephone, 'consignee_zone' => $this->consignee_zone, 'consignee_address' => $this->consignee_address, - 'pay_way' => (string) $this->pay_way, + 'pay_way' => (string) $this->pay_way?->label(), 'pay_at' => (string) $this->pay_at?->toDateTimeString(), 'completed_at' => (string) $this->completed_at?->toDateTimeString(), 'created_at' => $this->created_at->toDateTimeString(),