This commit is contained in:
weiz 2023-10-19 09:25:47 +08:00
parent 37b6776007
commit 5e201b9ead

View File

@ -15,7 +15,7 @@ class Vehicle extends BaseModel
public function getStatusNameAttr($value,$data): string public function getStatusNameAttr($value,$data): string
{ {
$status = [0=>'未出租',1=>'签约中',2=>'已出租',3=>'已解约']; $status = [0=>'未出租',1=>'签约中',2=>'已出租',3=>'已解约',4=>'已出售'];
return $status[$data['status']]; return $status[$data['status']];
} }