🐞 fix(共鸣系统): 修改获取数据下发字段
This commit is contained in:
@@ -26,8 +26,8 @@ export async function refreshResonanceData(roleId: string, serverId: number, sid
|
|||||||
|
|
||||||
|
|
||||||
let { dbResonanceMap, newPositionArr } = await getResonanceDataMap(roleId);
|
let { dbResonanceMap, newPositionArr } = await getResonanceDataMap(roleId);
|
||||||
for (let positon of newPositionArr) {
|
for (let position of newPositionArr) {
|
||||||
resonances.push({ positon });
|
resonances.push({ position });
|
||||||
}
|
}
|
||||||
if (dbResonanceMap.size == 0) return resonances;
|
if (dbResonanceMap.size == 0) return resonances;
|
||||||
|
|
||||||
@@ -183,7 +183,7 @@ export async function refreshResonanceData(roleId: string, serverId: number, sid
|
|||||||
const { hid } = hero;
|
const { hid } = hero;
|
||||||
const heroResult = new HeroParam(hero);
|
const heroResult = new HeroParam(hero);
|
||||||
if (!dbResonanceMap.has(hid)) continue;
|
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;
|
return resonances;
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ export interface SlotCard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ReturnResonanceParam {
|
export interface ReturnResonanceParam {
|
||||||
positon: number; // 上阵位置,从1开始(6为鸣主配系统参数表),已解锁未上阵仅有positon
|
position: number; // 上阵位置,从1开始(6为鸣主配系统参数表),已解锁未上阵仅有positon
|
||||||
hid?: number; // 武将id
|
hid?: number; // 武将id
|
||||||
seqId?: number; // 武将表自增 id
|
seqId?: number; // 武将表自增 id
|
||||||
lv?: number; //武将等级
|
lv?: number; //武将等级
|
||||||
|
|||||||
Reference in New Issue
Block a user