mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-12-01 19:28:37 +00:00
修正历史错误数据可能导致面板统计错误的问题
This commit is contained in:
parent
e58721d1b9
commit
6c8952c885
@ -44,8 +44,11 @@ export async function profileStat (e) {
|
|||||||
avatar.aeq = talent?.a?.original + talent?.e?.original + talent?.q?.original || 3
|
avatar.aeq = talent?.a?.original + talent?.e?.original + talent?.q?.original || 3
|
||||||
avatarRet.push(avatar)
|
avatarRet.push(avatar)
|
||||||
if (profiles[id]) {
|
if (profiles[id]) {
|
||||||
let mark = profiles[id].getArtisMark(false)
|
let profile = profiles[id]
|
||||||
avatar.artisMark = Data.getData(mark, 'mark,markClass,names')
|
if(profile.hasData) {
|
||||||
|
let mark = profiles[id].getArtisMark(false)
|
||||||
|
avatar.artisMark = Data.getData(mark, 'mark,markClass,names')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@ class Character extends Base {
|
|||||||
if (CharId.isTraveler(avatar.id)) {
|
if (CharId.isTraveler(avatar.id)) {
|
||||||
let char = Character.get({
|
let char = Character.get({
|
||||||
id: avatar.id,
|
id: avatar.id,
|
||||||
elem: (avatar.elem || avatar.element).toLowerCase() || 'anemo'
|
elem: (avatar.elem || avatar.element || 'anemo').toLowerCase()
|
||||||
})
|
})
|
||||||
char.setTraveler(uid)
|
char.setTraveler(uid)
|
||||||
return char
|
return char
|
||||||
|
@ -125,7 +125,10 @@ export default class ProfileData extends Base {
|
|||||||
|
|
||||||
// 获取当前profileData的圣遗物评分,withDetail=false仅返回简略信息
|
// 获取当前profileData的圣遗物评分,withDetail=false仅返回简略信息
|
||||||
getArtisMark (withDetail = true) {
|
getArtisMark (withDetail = true) {
|
||||||
return this.artis.getMarkDetail(withDetail)
|
if(this.hasData) {
|
||||||
|
return this.artis.getMarkDetail(withDetail)
|
||||||
|
}
|
||||||
|
return {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 计算当前profileData的伤害信息
|
// 计算当前profileData的伤害信息
|
||||||
|
Loading…
Reference in New Issue
Block a user