mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-25 09:27:34 +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
|
||||
avatarRet.push(avatar)
|
||||
if (profiles[id]) {
|
||||
let mark = profiles[id].getArtisMark(false)
|
||||
avatar.artisMark = Data.getData(mark, 'mark,markClass,names')
|
||||
let profile = profiles[id]
|
||||
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)) {
|
||||
let char = Character.get({
|
||||
id: avatar.id,
|
||||
elem: (avatar.elem || avatar.element).toLowerCase() || 'anemo'
|
||||
elem: (avatar.elem || avatar.element || 'anemo').toLowerCase()
|
||||
})
|
||||
char.setTraveler(uid)
|
||||
return char
|
||||
|
@ -125,7 +125,10 @@ export default class ProfileData extends Base {
|
||||
|
||||
// 获取当前profileData的圣遗物评分,withDetail=false仅返回简略信息
|
||||
getArtisMark (withDetail = true) {
|
||||
return this.artis.getMarkDetail(withDetail)
|
||||
if(this.hasData) {
|
||||
return this.artis.getMarkDetail(withDetail)
|
||||
}
|
||||
return {}
|
||||
}
|
||||
|
||||
// 计算当前profileData的伤害信息
|
||||
|
Loading…
Reference in New Issue
Block a user