🐞 fix(gvg): 遗迹选择对手缺少皮肤信息
This commit is contained in:
@@ -263,7 +263,7 @@ export async function getOppDetailData(rec: GVGVestigeRecType) {
|
|||||||
const dicWarJson = gameData.warJson.get(dicWar.dispatchJsonId);
|
const dicWarJson = gameData.warJson.get(dicWar.dispatchJsonId);
|
||||||
const defenseInfo = rec.defenseInfo.heroes||[];
|
const defenseInfo = rec.defenseInfo.heroes||[];
|
||||||
const hids = defenseInfo.map(cur => cur.hid);
|
const hids = defenseInfo.map(cur => cur.hid);
|
||||||
const heroes = await HeroModel.findByHidRange(hids, rec.defenseRoleId, 'hid lv quality star colorStar skins ce');
|
const heroes = await HeroModel.findByHidRange(hids, rec.defenseRoleId, 'hid lv quality star colorStar skins ce skinId');
|
||||||
const artifactSeids = heroes.map(hero => hero.artifact);
|
const artifactSeids = heroes.map(hero => hero.artifact);
|
||||||
const artifacts = await ArtifactModel.findbySeqIds(rec.defenseRoleId, artifactSeids);
|
const artifacts = await ArtifactModel.findbySeqIds(rec.defenseRoleId, artifactSeids);
|
||||||
result.setByPlayer(dicWarJson, defenseInfo, heroes, artifacts);
|
result.setByPlayer(dicWarJson, defenseInfo, heroes, artifacts);
|
||||||
|
|||||||
Reference in New Issue
Block a user