This commit is contained in:
Putoo
2026-05-28 19:06:40 +08:00
parent 0d5443ef36
commit 69ae1e3174
39 changed files with 1742 additions and 31 deletions

View File

@@ -15,14 +15,16 @@ public class MapController : ControllerBase
private readonly IGameMapService _mapService;
private readonly IGameChatService _chatService;
private readonly IUnitUserAttrService _attrService;
private readonly IMessageService _messageService;
public MapController(IUnitUserService userService, IGameMapService mapService, IGameChatService chatService,
IUnitUserAttrService attrService)
IUnitUserAttrService attrService,IMessageService messageService)
{
_userService = userService;
_mapService = mapService;
_chatService = chatService;
_attrService = attrService;
_messageService = messageService;
}
/// <summary>
@@ -79,6 +81,7 @@ public class MapController : ControllerBase
var cityInfo = await _mapService.GetCityInfo((int)mapInfo.cityId); //城市信息
var cityShow = await _mapService.GetCityShowMap(cityInfo.cityId); //城内地图
int noReadMsg = await _messageService.GetNoReadCount(userId);
#region 线
string ip = ComHelper.GetClientUserIp(HttpContext);
@@ -86,7 +89,7 @@ public class MapController : ControllerBase
#endregion
object ret = new { mapInfo, cityInfo, npcData, chatData, cityShow, nearUser };
object ret = new { mapInfo, cityInfo, npcData, chatData, cityShow, nearUser,noReadMsg };
return PoAction.Ok(ret);
}