From 4ca1fbf320b45741911e936ec646a9f156bc55da Mon Sep 17 00:00:00 2001 From: unknown <736250432@qq.com> Date: Tue, 15 Aug 2023 13:58:27 +0800 Subject: [PATCH] return type of time update --- app/common/model/logistics/Logistics.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/app/common/model/logistics/Logistics.php b/app/common/model/logistics/Logistics.php index c4d62c7b..9bfec23d 100755 --- a/app/common/model/logistics/Logistics.php +++ b/app/common/model/logistics/Logistics.php @@ -40,22 +40,17 @@ class Logistics extends BaseModel return date('Y-m-d H:i:s',$value); } - public function getQhTimeAttr($value): string + public function getQhTimeAttr($value): string|int { return !empty($value) ? date('Y-m-d H:i:s',$value) : $value; } - public function getShTimeAttr($value): string + public function getPsTimeAttr($value): string|int { return !empty($value) ? date('Y-m-d H:i:s',$value) : $value; } - public function getPsTimeAttr($value): string - { - return !empty($value) ? date('Y-m-d H:i:s',$value) : $value; - } - - public function getQxTimeAttr($value): string + public function getQxTimeAttr($value): string|int { return !empty($value) ? date('Y-m-d H:i:s',$value) : $value; }