!18 修复 Bot非QQ时,状态头像显示错误

* 修复 Bot非QQ时,状态头像显示错误
This commit is contained in:
时雨◎星空
2023-04-28 16:26:44 +00:00
committed by 椰羊
parent 1a6a2378b5
commit 3a9f39efe2

View File

@@ -57,7 +57,7 @@ export class NewState extends plugin {
let data = {
chartData: JSON.stringify(_.every(_.omit(State.chartData, 'echarts_theme'), _.isEmpty) ? undefined : State.chartData),
// 头像
portrait: `https://q1.qlogo.cn/g?b=qq&s=0&nk=${(e.bot ?? Bot).uin}`,
portrait: e.bot.avatar || `https://q1.qlogo.cn/g?b=qq&s=0&nk=${(e.bot ?? Bot).uin}`,
// 运行时间
runTime: common.formatTime(Date.now() / 1000 - (e.bot ?? Bot).stat.start_time, 'dd天hh小时mm分ss', false),
// 日历