From 499830cd67fb4ab7839dcef5b6df12c553c85c13 Mon Sep 17 00:00:00 2001 From: yoimiya-kokomi <592981798@qq.com> Date: Mon, 8 Aug 2022 06:24:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20#=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E7=BB=83=E5=BA=A6=E7=BB=9F=E8=AE=A1=20=E7=9A=84=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=B8=8E=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/character/profile-stat.js | 5 ++++- components/models/Artifact.js | 1 - resources/character/profile-stat.less | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/character/profile-stat.js b/apps/character/profile-stat.js index 8031e535..fdcb47cf 100644 --- a/apps/character/profile-stat.js +++ b/apps/character/profile-stat.js @@ -4,7 +4,6 @@ import { Artifact, Avatars } from '../../components/models.js' export async function profileStat (e, { render }) { // 缓存时间,单位小时 - let cacheCd = 6 let msg = e.msg.replace('#', '').trim() if (msg === '角色统计' || msg === '武器统计') { @@ -25,6 +24,10 @@ export async function profileStat (e, { render }) { return true } + if (!await Avatars.hasTalentCache(uid)) { + e.reply('正在获取角色信息,请稍候...') + } + let avatars = new Avatars(uid, resIndex.avatars) let ids = avatars.getIds() diff --git a/components/models/Artifact.js b/components/models/Artifact.js index ccfe5598..3eee783a 100644 --- a/components/models/Artifact.js +++ b/components/models/Artifact.js @@ -170,7 +170,6 @@ let Artifact = { sets[setName] = (sets[setName] || 0) + 1 } }) - console.log(charName, sets) for (let set in sets) { if (sets[set] >= 4) { setMap[set] = 4 diff --git a/resources/character/profile-stat.less b/resources/character/profile-stat.less index 7e863076..6216c27e 100644 --- a/resources/character/profile-stat.less +++ b/resources/character/profile-stat.less @@ -220,7 +220,7 @@ .lv1 { - background: rgba(60, 63, 65, .5) + background: rgba(60, 63, 65, .6) } .lv2 {