From 34f93e8681b85c573b0ebb078fe67e61a8a7c5ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=8F=B6?= <1936472877@qq.com> Date: Wed, 1 Jan 2025 23:37:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8E=A8=E9=80=81=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/task/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/models/task/index.js b/models/task/index.js index ca5dacb..4a7ca91 100644 --- a/models/task/index.js +++ b/models/task/index.js @@ -104,7 +104,7 @@ export function startTimer () { desc: `已${utils.steam.getPersonaState(player.personastate)}`, image: await utils.bot.getUserAvatar(i.botId, i.userId, i.groupId) || (Config.other.steamAvatar ? i.avatarfull : ''), isAvatar: true, - descStyle: `style="background-color: #${getColor(player.personastate)};color: white;width: fit-content;border-radius: 5px; padding: 0 5px;"` + descBgColor: getColor(i.personastate) }) if (player.personastate === 0) { db.StatsTableUpdate(i.userId, i.groupId, i.botId, i.steamId, player.gameid, player.gameextrainfo, 'onlineTime', time).catch(e => logger.error('更新统计数据失败', e.message)) @@ -181,10 +181,10 @@ export function startTimer () { function getColor (state) { switch (Number(state)) { case 1: - return 'beee11' + return '#beee11' case 0: - return '999999' + return '#999999' default: - return '8fbc8b' + return '#8fbc8b' } }