From 04197abb0cc77698c65ba7d764a99a3ef795db4c Mon Sep 17 00:00:00 2001 From: duhui Date: Fri, 18 Nov 2022 10:06:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=80=E8=83=BDbug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ljsd/jieling/logic/dao/vo/HeroVo.java | 4 ++-- .../src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/vo/HeroVo.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/vo/HeroVo.java index 31990d96d..d0871aa1d 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/vo/HeroVo.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/vo/HeroVo.java @@ -41,7 +41,7 @@ public class HeroVo { HeroManager heroManager = user.getHeroManager(); this.id = hero.getId(); this.templateId = hero.getTemplateId(); - this.star = hero.getTemplateId(); + this.star = hero.getStar(); this.HMBreakId = hero.getBreakIdByHongMeng(heroManager); this.starBreakId = hero.getStarBreakId(); this.HMEspecialEquipLevel = hero.getEspecialEquipLevelByHongmeng(heroManager,hero.getId()); @@ -59,7 +59,7 @@ public class HeroVo { public HeroVo(CrossArenaManager arena, ArenaOfHero hero) { this.id = hero.getId(); this.templateId = hero.getTemplateId(); - this.star = hero.getTemplateId(); + this.star = hero.getStar(); this.HMBreakId = hero.getBreakId(); this.starBreakId = hero.getStarBreakId(); this.HMEspecialEquipLevel = hero.getEspecialEquipLevel(); diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java index bd382f653..e3439845e 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java @@ -2192,7 +2192,7 @@ public class HeroLogic { continue; } SPlayerHeadIcon sPlayerHeadIcon = SPlayerHeadIcon.getHeadIconMap().get(entry.getKey()); - if (sPlayerHeadIcon.getSkill() == null || sPlayerHeadIcon.getSkill().length <= 0) { + if (sPlayerHeadIcon.getSkill() == null || sPlayerHeadIcon.getSkill().length == 0) { continue; } skillList.add(sPlayerHeadIcon.getSkill()[0][0]);