mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
优化机器人名称显示;
This commit is contained in:
@@ -96,4 +96,11 @@ class PostVisit extends Model
|
||||
|
||||
return "$name $version";
|
||||
}
|
||||
|
||||
public function getClientBotNameAttr()
|
||||
{
|
||||
$client_bot = $this->getAttr('client_bot');
|
||||
|
||||
return $client_bot->name ?? '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user