mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-04 00:24:29 +08:00
优化机器人名称显示;
This commit is contained in:
@@ -96,4 +96,11 @@ class PostVisit extends Model
|
|||||||
|
|
||||||
return "$name $version";
|
return "$name $version";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getClientBotNameAttr()
|
||||||
|
{
|
||||||
|
$client_bot = $this->getAttr('client_bot');
|
||||||
|
|
||||||
|
return $client_bot->name ?? '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
<span>{$vo.create_time_title}</span>
|
<span>{$vo.create_time_title}</span>
|
||||||
<span>{$vo.client_name}</span>
|
<span>{$vo.client_name}</span>
|
||||||
<span>{$vo.client_os_name}</span>
|
<span>{$vo.client_os_name}</span>
|
||||||
|
<span>{$vo.client_bot_name}</span>
|
||||||
<a href="{$vo.post.read_url}" title="{$vo.post.title}">《{$vo.post.title}》</a>
|
<a href="{$vo.post.read_url}" title="{$vo.post.title}">《{$vo.post.title}》</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -165,6 +165,7 @@
|
|||||||
{$vo.create_time_title}
|
{$vo.create_time_title}
|
||||||
{$vo.client_name}
|
{$vo.client_name}
|
||||||
{$vo.client_os_name}
|
{$vo.client_os_name}
|
||||||
|
{$vo.client_bot_name}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user