更新 #面板练度统计 的样式与功能

This commit is contained in:
yoimiya-kokomi 2022-08-08 06:24:40 +08:00
parent 047dc8e7ba
commit 499830cd67
3 changed files with 5 additions and 3 deletions

View File

@ -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()

View File

@ -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

View File

@ -220,7 +220,7 @@
.lv1 {
background: rgba(60, 63, 65, .5)
background: rgba(60, 63, 65, .6)
}
.lv2 {