return type of time update

This commit is contained in:
unknown 2023-08-15 13:58:27 +08:00
parent 1dd39c5e1e
commit 4ca1fbf320

View File

@ -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;
}