🐞 fix(共鸣系统): 修改获取数据下发字段

This commit is contained in:
zhangxk
2023-10-10 16:48:25 +08:00
parent a4b2971ef0
commit 9a6d237047
2 changed files with 4 additions and 4 deletions

View File

@@ -26,8 +26,8 @@ export async function refreshResonanceData(roleId: string, serverId: number, sid
let { dbResonanceMap, newPositionArr } = await getResonanceDataMap(roleId);
for (let positon of newPositionArr) {
resonances.push({ positon });
for (let position of newPositionArr) {
resonances.push({ position });
}
if (dbResonanceMap.size == 0) return resonances;
@@ -183,7 +183,7 @@ export async function refreshResonanceData(roleId: string, serverId: number, sid
const { hid } = hero;
const heroResult = new HeroParam(hero);
if (!dbResonanceMap.has(hid)) continue;
resonances.push({ positon: dbResonanceMap.get(hid).position, ...pick(heroResult, ['hid', 'seqId', 'lv', 'exp', 'jobStage', 'talent', 'usedTalentPoint', 'totalTalentPoint', 'connections', 'ePlace', 'ce']) });
resonances.push({ position: dbResonanceMap.get(hid).position, ...pick(heroResult, ['hid', 'seqId', 'lv', 'exp', 'jobStage', 'talent', 'usedTalentPoint', 'totalTalentPoint', 'connections', 'ePlace', 'ce']) });
}
return resonances;