优化机器人名称显示;

This commit is contained in:
2023-11-27 09:20:39 +08:00
parent 0b29a5351e
commit a59b124e70
3 changed files with 9 additions and 0 deletions

View File

@@ -96,4 +96,11 @@ class PostVisit extends Model
return "$name $version";
}
public function getClientBotNameAttr()
{
$client_bot = $this->getAttr('client_bot');
return $client_bot->name ?? '';
}
}