This commit is contained in:
Putoo
2026-06-08 18:56:28 +08:00
parent 1927e3f960
commit 9f3e4871a4
23 changed files with 1113 additions and 19 deletions

View File

@@ -20,9 +20,10 @@ public class MapController : ControllerBase
private readonly IUnitUserAccService _accService;
private readonly IGameSkillService _skillService;
private readonly IGameGoodsService _goodsService;
private readonly IGameTeamService _teamService;
public MapController(IUnitUserService userService, IGameMapService mapService, IGameChatService chatService,
IUnitUserAttrService attrService, IMessageService messageService, IUnitUserWeight weightService,
IUnitUserAccService accService, IGameSkillService skillService,IGameGoodsService goodsService)
IUnitUserAccService accService, IGameSkillService skillService,IGameGoodsService goodsService,IGameTeamService teamService)
{
_userService = userService;
_mapService = mapService;
@@ -33,6 +34,7 @@ public class MapController : ControllerBase
_accService = accService;
_skillService = skillService;
_goodsService = goodsService;
_teamService = teamService;
}
#region
@@ -87,7 +89,8 @@ public class MapController : ControllerBase
#endregion
//公聊信息
string teamId = "";
var myTeam = await _teamService.GetUserTeamData(userId);
string teamId =myTeam.teamId ;
string groupId = "";
var chatData = await _chatService.GetChatTop(userId, area, 2, teamId, groupId);