This commit is contained in:
Putoo
2026-07-04 18:07:37 +08:00
parent ea32e7046e
commit fa00fc5d66
26 changed files with 871 additions and 69 deletions

View File

@@ -27,7 +27,7 @@ public class MapController : ControllerBase
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)
IGameTeamService teamService, IGameMonsterService monsterService, IGameFightService fightService)
{
_userService = userService;
_mapService = mapService;
@@ -55,6 +55,7 @@ public class MapController : ControllerBase
{
string userId = StateHelper.userId;
int area = StateHelper.areaId;
string gameTips = string.Empty;
game_city_map mapInfo = new game_city_map();
#region
@@ -79,6 +80,7 @@ public class MapController : ControllerBase
//设置默认地图点
await _mapService.SetUserMapDefult(userId);
isSelfMap = true;
gameTips = "➢当前体力为0,恢复一下吧!";
}
}
@@ -145,7 +147,7 @@ public class MapController : ControllerBase
var userFight = await _fightService.GetUserFight(userId);
string fightId = userFight.Count > 0 ? userFight[0] : "";
object ret = new
{
mapInfo,
@@ -159,7 +161,8 @@ public class MapController : ControllerBase
mapRes,
broadcast,
monster = monsterData,
fightId
fightId,
gameTips
};
return PoAction.Ok(ret);