diff --git a/components/profile-data/enka.js b/components/profile-data/enka.js index d42298aa..115326bf 100644 --- a/components/profile-data/enka.js +++ b/components/profile-data/enka.js @@ -24,7 +24,7 @@ export default new ProfileServ({ } let details = data.avatarInfoList if (!details || details.length === 0 || !details[0].propMap) { - return req.err('no-avatar', 5 * 60) + return req.err('empty', 5 * 60) } return EnkaData.getData(req.uid, data) } diff --git a/models/ProfileDmg.js b/models/ProfileDmg.js index ebd47b49..1e738b40 100644 --- a/models/ProfileDmg.js +++ b/models/ProfileDmg.js @@ -38,7 +38,7 @@ export default class ProfileDmg extends Base { let originalAttr = Calc.attr(profile) let weaponBuffs = await Calc.weapon(profile.weapon.name) - let reliBuffs = await Calc.reliquaries(profile.artis) + let reliBuffs = await Calc.reliquaries(profile.artis?.artis||{}) buffs = lodash.concat(buffs, weaponBuffs, reliBuffs) lodash.forEach(buffs, (buff) => {