From c790fdba59a88c53b403134d2ab4dbd189ac33b9 Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Sat, 12 Sep 2020 19:46:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Model/v3/StoreWithdrawal.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Model/v3/StoreWithdrawal.php b/app/Model/v3/StoreWithdrawal.php index f063b7b..a369aa9 100644 --- a/app/Model/v3/StoreWithdrawal.php +++ b/app/Model/v3/StoreWithdrawal.php @@ -10,7 +10,8 @@ class StoreWithdrawal extends Model protected $appends = [ 'state_text', - 'check_time_text' + 'check_time_text', + 'created_at_text' ]; public function getStateTextAttribute() @@ -26,4 +27,9 @@ class StoreWithdrawal extends Model return date('Y-m-d H:i:s', $this->attributes['check_time']); } } + + public function getCreatedAtTimeTextAttribute() + { + return date('Y-m-d H:i:s', $this->attributes['created_at']); + } } \ No newline at end of file