From 589d6166097723a900b519f1fab9dd48ed693991 Mon Sep 17 00:00:00 2001 From: Kokomi <592981798@qq.com> Date: Fri, 19 Aug 2022 10:42:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BC=A4=E5=AE=B3=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E5=9C=A3=E9=81=97=E7=89=A9buff=E4=B8=A2=E5=A4=B1?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/profile-data/enka.js | 2 +- models/ProfileDmg.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) => {