修复助战数据异常bug

master_haizei
grimm 2023-12-29 15:30:23 +08:00
parent 651edbb0cb
commit 1b9cbd6f25
1 changed files with 5 additions and 2 deletions

View File

@ -253,12 +253,15 @@ public class CBean2Proto {
List<CommonProto.Equip> jewels = buildHelpFightEquip(helpHero.getJewels());
// 法相
List<CommonProto.Equip> faxiang = buildHelpFightEquip(helpHero.getFaxiangs());
Hero hero = helpHero.getHero();
// 装备详细信息
Hero hero = helpHero.getHero();
List<CommonProto.Equip> equips = new ArrayList<>();
hero.getEquipByPositionMap().values().forEach(v->equips.add(getEquipProto(v)));
// 法宝
CommonProto.Equip baublesProto = getBaublesProto(helpHero.getBaublesList(), helpHero.getBaubles());
CommonProto.Equip.Builder baublesProto = null;
if (helpHero.getBaubles() != null){
baublesProto = getBaublesProto(helpHero.getBaublesList(), helpHero.getBaubles()).toBuilder();
}
// 获取英雄信息
return CommonProto.HelpFightList.newBuilder()
.setUid(otherUser.getId())