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