diff --git a/logic/controller/fight_塔.go b/logic/controller/fight_塔.go index 11b938abe..b221c2d84 100644 --- a/logic/controller/fight_塔.go +++ b/logic/controller/fight_塔.go @@ -81,7 +81,7 @@ func (h Controller) FreshChoiceFightLevel(data *fight.C2S_FRESH_CHOICE_FIGHT_LEV //next := service.NewTower600Service().Boss(c.Info.CurrentFreshStage + 1) } - if boss != nil { + if len(boss[0].BossIds) != 0 { //单节点,取获取到的一个,然后因为不是剧情,所以只有一层 r := service.NewBossService().Get(boss[0].BossIds[0]) for _, v := range r { @@ -131,7 +131,7 @@ func (h Controller) PetTawor(data *fight.StartTwarInboundInfo, c *player.Player) } if len(boss) > 1 { - r := service.NewBossService().Get(boss[0].BossIds[0]) + r := service.NewBossService().Get(boss[1].BossIds[0]) for _, v := range r { result.BossID = append(result.BossID, uint32(v.MonID)) } diff --git a/modules/config/service/tower.go b/modules/config/service/tower.go index ae91856fa..62607e53b 100644 --- a/modules/config/service/tower.go +++ b/modules/config/service/tower.go @@ -68,7 +68,7 @@ func (m *UnifiedTowerModel) GroupName() string { // Boss 根据塔等级获取对应的Boss配置(统一入口) func (s *TowerService) Boss(towerLevel ...uint32) []model.BaseTowerConfig { // 构建基础查询条件 - query := dbm_enable(s.Model).WhereIn("tower_level", towerLevel) + query := dbm_enable(s.Model).WhereIn("tower_level", towerLevel).OrderAsc("tower_level") // 600塔专属的缓存配置 var config []model.BaseTowerConfig