diff --git a/app/common/model/logistics/Logistics.php b/app/common/model/logistics/Logistics.php index 97a7cbf6..936ff87e 100755 --- a/app/common/model/logistics/Logistics.php +++ b/app/common/model/logistics/Logistics.php @@ -42,21 +42,20 @@ class Logistics extends BaseModel public function getQhTimeAttr($value): string { - return date('Y-m-d H:i:s',$value); - } + return !empty($value) ? date('Y-m-d H:i:s',$value) : $value; public function getShTimeAttr($value): string { - return date('Y-m-d H:i:s',$value); + return !empty($value) ? date('Y-m-d H:i:s',$value) : $value; } public function getPcTimeAttr($value): string { - return date('Y-m-d H:i:s',$value); + return !empty($value) ? date('Y-m-d H:i:s',$value) : $value; } public function getQxTimeAttr($value): string { - return date('Y-m-d H:i:s',$value); + return !empty($value) ? date('Y-m-d H:i:s',$value) : $value; } } \ No newline at end of file