From f1e6e2f2047a70d082fbacd61471d5542a18dc32 Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Tue, 28 Dec 2021 11:51:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B4=A6=E6=88=B7=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Api/Http/Resources/DistributionPreIncomeResource.php | 2 +- app/Endpoint/Api/Http/Resources/WalletLogResource.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Endpoint/Api/Http/Resources/DistributionPreIncomeResource.php b/app/Endpoint/Api/Http/Resources/DistributionPreIncomeResource.php index f225b2d1..562a3a18 100644 --- a/app/Endpoint/Api/Http/Resources/DistributionPreIncomeResource.php +++ b/app/Endpoint/Api/Http/Resources/DistributionPreIncomeResource.php @@ -17,7 +17,7 @@ class DistributionPreIncomeResource extends JsonResource return [ 'remarks' => $this->remarks, 'logs' => DistributionPreIncomeLogResource::collection($this->whenLoaded('logs')), - 'created_at'=> $this->created_at->toDateTimeString(), + 'created_at'=> $this->created_at->format('y-m-d H:i'), 'total_revenue' => $this->total_revenue, ]; } diff --git a/app/Endpoint/Api/Http/Resources/WalletLogResource.php b/app/Endpoint/Api/Http/Resources/WalletLogResource.php index 055a4296..222afbb4 100644 --- a/app/Endpoint/Api/Http/Resources/WalletLogResource.php +++ b/app/Endpoint/Api/Http/Resources/WalletLogResource.php @@ -16,7 +16,7 @@ class WalletLogResource extends JsonResource { return [ 'remarks' => $this->remarks, - 'created_at' => $this->created_at->toDateTimeString(), + 'created_at' => $this->created_at->format('y-m-d H:i'), 'change_balance' => $this->change_balance, ]; }