From c66272803623fd80fd7a906abb20aa9378b61004 Mon Sep 17 00:00:00 2001 From: weigang Date: Mon, 2 Nov 2020 15:26:45 +0800 Subject: [PATCH] fixed bug --- app/Model/v3/OrderMain.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Model/v3/OrderMain.php b/app/Model/v3/OrderMain.php index 1e76dac..fa61000 100644 --- a/app/Model/v3/OrderMain.php +++ b/app/Model/v3/OrderMain.php @@ -70,6 +70,11 @@ class OrderMain extends Model return date('Y-m-d H:i:s', $this->attributes['created_at']); } + public function getUpdatedAtTextAttribute() + { + return date('Y-m-d H:i:s', $this->attributes['updated_at']); + } + public function getPayTimeTextAttribute() { return date('Y-m-d H:i:s', $this->attributes['pay_time']);