public IHttpActionResult List(DeveloperCommand model) { string stat = string.IsNullOrEmpty(model.SearchState) ? "1" : model.SearchState;//用户状态 var orderby = "order by" + " " + model.Sort + " " + model.Order; var list = _iJmpUserService.FindPagedListBysql(model.SearchType, model.SearchKey, stat, model.Category, model.Relation_type, model.Auditstate, model.RiskM, orderby, model.Page, model.Rows); var gridModel = new ViewModel.DataSource.DataSourceResult <DeveloperModel>(list) { Rows = list.Select(x => { var m = x.ToModel(); return(m); }) }; return(Ok(gridModel)); }
public IHttpActionResult EnabledOrDisable(DeveloperCommand mod) { var ReturnStart = _iJmpUserService.UpdateStart(int.Parse(mod.SearchState), mod.IdList); return(Ok(ReturnStart)); }
internal void MoveTo(int pX, int pY) { // Comando developer activado? if (DeveloperCommand.CheckDeveloper(this, pX, pY, GetRoom())) { return; } bool guildGateUser = false; Gamemap roomGameMap = GetRoom().GetGameMap(); Point square = new Point(pX, pY); if (roomGameMap.guildGates.ContainsKey(square)) { uint GuildId = 0; string[] strArr = roomGameMap.guildGates[square].GroupData.Split(';'); if (strArr.Length < 2) { return; } uint.TryParse(strArr[1], out GuildId); if (GuildId > 0) { if (!IsBot) { if (GetClient().GetHabbo().MyGroups.Contains(GuildId)) { guildGateUser = true; } } } } // Si hay un usuario o un item, evitamos crear un nuevo path. if (!GetRoom().GetGameMap().tileIsWalkable(pX, pY, true, false, guildGateUser) && !AllowOverride && walkingToPet == null) { return; } if (ByteToItemEffectEnum.Parse(GetRoom().GetGameMap().EffectMap[pX, pY]) == ItemEffectType.HorseJump) { return; } if (isKicking) { return; } Unidle(); if (TeleportEnabled) { if (IsWalking) { GetRoom().GetGameMap().RemoveUserFromMap(this, new Point(SetX, SetY)); ClearMovement(true); } GetRoom().SendMessage(GetRoom().GetRoomItemHandler().UpdateUserOnRoller(this, new Point(pX, pY), 0)); GetRoom().GetRoomUserManager().UpdateUserStatus(this, false); return; } IsWalking = true; GoalX = pX; GoalY = pY; PathRecalcNeeded = true; throwBallAtGoal = false; // GetRoom().GetRoomUserManager().UpdateUsersPath = true; }