This commit is contained in:
Putoo
2026-07-16 12:48:31 +08:00
parent c94b3ce200
commit 2cd2ed02f8
19 changed files with 138 additions and 20 deletions

View File

@@ -23,12 +23,13 @@ public class MapController : ControllerBase
private readonly IGameFightService _fightService;
private readonly IOnHookService _hookService;
private readonly IGameTaskService _taskService;
private readonly INoticeService _noticeService;
public MapController(IUnitUserService userService, IGameMapService mapService, IGameChatService chatService,
IUnitUserAttrService attrService, IMessageService messageService, IUnitUserWeight weightService,
IUnitUserAccService accService, IGameSkillService skillService, IGameGoodsService goodsService,
IGameTeamService teamService, IGameMonsterService monsterService, IGameFightService fightService,
IOnHookService hookService, IGameTaskService taskService)
IOnHookService hookService, IGameTaskService taskService,INoticeService noticeService)
{
_userService = userService;
_mapService = mapService;
@@ -44,6 +45,7 @@ public class MapController : ControllerBase
_fightService = fightService;
_hookService = hookService;
_taskService = taskService;
_noticeService = noticeService;
}
#region
@@ -146,6 +148,8 @@ public class MapController : ControllerBase
var onHook = await _hookService.GetUserOnHook(userId);
isHook = (int)onHook.status;
var notice = await _noticeService.GetNoticeDataByMap();
object ret = new
{
mapInfo,
@@ -163,6 +167,7 @@ public class MapController : ControllerBase
fightId,
gameTips,
isHook,
notice,
taskCount = taskData.Count
};