This commit is contained in:
Putoo
2026-07-03 18:16:47 +08:00
parent 5eb0bfd792
commit ea32e7046e
29 changed files with 390 additions and 75 deletions

View File

@@ -22,11 +22,12 @@ public class MapController : ControllerBase
private readonly IGameGoodsService _goodsService;
private readonly IGameTeamService _teamService;
private readonly IGameMonsterService _monsterService;
private readonly IGameFightService _fightService;
public MapController(IUnitUserService userService, IGameMapService mapService, IGameChatService chatService,
IUnitUserAttrService attrService, IMessageService messageService, IUnitUserWeight weightService,
IUnitUserAccService accService, IGameSkillService skillService, IGameGoodsService goodsService,
IGameTeamService teamService, IGameMonsterService monsterService)
IGameTeamService teamService, IGameMonsterService monsterService,IGameFightService fightService)
{
_userService = userService;
_mapService = mapService;
@@ -39,6 +40,7 @@ public class MapController : ControllerBase
_goodsService = goodsService;
_teamService = teamService;
_monsterService = monsterService;
_fightService = fightService;
}
#region
@@ -141,6 +143,9 @@ public class MapController : ControllerBase
var broadcast = await _messageService.GetBroadcastData(area);
var userFight = await _fightService.GetUserFight(userId);
string fightId = userFight.Count > 0 ? userFight[0] : "";
object ret = new
{
mapInfo,
@@ -153,7 +158,8 @@ public class MapController : ControllerBase
business,
mapRes,
broadcast,
monster = monsterData
monster = monsterData,
fightId
};
return PoAction.Ok(ret);