Exemplo n.º 1
0
        public override void Execute()
        {
            var army = this._site.InitArmyGroup();

            if (army != null)
            {
                bool isCaption = this._site.CheckIsGroupCaption();

                this._site.ArmyGroupLeave();

                foreach (var c in army.CharaInfoVoList)
                {
                    var gc = CharacterCache.GetCharByNo(c.CharaNo);
                    if (gc != null)
                    {
                        CharacterArmyGroupCache.ClearCache(gc.CharaId);
                        AllMapCache.ClearCache(gc.CharaId);
                    }
                }

                if (isCaption)
                {
                    CharacterConfigCache.CancelDungeonGuaji(this._site.Config);
                }
            }

            Response.WriteAsync(JsonUtil.Serialize(new { }));
        }
Exemplo n.º 2
0
        public override void Execute()
        {
            AllMapCache.ClearCache("0");
            AllSyntheticCache.ClearCache("0");

            Response.WriteAsync(JsonUtil.Serialize(new { }));
        }
Exemplo n.º 3
0
 public List <Map> InitAllSingleMaps()
 {
     return(AllMapCache.TryGetValue("0", id =>
     {
         string path = "/foodie-api/gameChara/queryMapList";      // "/foodie-api/gameChara/mapDropItems";
         List <Map> mapList = this.GetResult <List <Map> >(path); //this.PostResult<List<Map>>(path, null);
         return mapList;
     }));
 }
        public override void Execute()
        {
            CharacterCache.ClearCache(this._site.CurrentCharId);
            CharacterEquipCache.ClearCache(this._site.CurrentCharId);
            CharacterSkillCache.ClearCache(this._site.CurrentCharId);
            AllMapCache.ClearCache(this._site.CurrentCharId);
            CharacterMarketCache.ClearCache(this._site.CurrentCharId);
            CharacterArmyGroupCache.ClearCache(this._site.CurrentCharId);
            RealmBonusCache.ClearCache(this._site.CurrentCharId);
            CharacterActivityCache.ClearCache(this._site.CurrentCharId);

            Response.WriteAsync(JsonUtil.Serialize(new { }));
        }
Exemplo n.º 5
0
 public List <Map> InitAllDungeonMaps()
 {
     return(AllMapCache.TryGetValue("1", id =>
     {
         string path = "/foodie-api/gameAmry/queryMapList";
         var dMapList = this.GetResult <List <Map> >(path);
         foreach (var m in dMapList)
         {
             m.IsDungeon = true;
         }
         return dMapList;
     }));
 }
        public override void Execute()
        {
            string no = GetQuery <string>("no");

            var army = this._site.InitArmyGroup();

            if (army != null)
            {
                this._site.ArmyGroupRemoveChar(no);

                foreach (var c in army.CharaInfoVoList)
                {
                    var gc = CharacterCache.GetCharByNo(c.CharaNo);
                    if (gc != null)
                    {
                        CharacterArmyGroupCache.ClearCache(gc.CharaId);
                    }
                }

                AllMapCache.ClearCache(this._site.CurrentCharId);
            }

            Response.WriteAsync(JsonUtil.Serialize(new { }));
        }