12121
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user