Esempio n. 1
0
 public List <Equipment> InitCharEquips()
 {
     return(CharacterEquipCache.TryGetValue(this.CurrentCharId, id =>
     {
         string path = string.Format("/foodie-api/gameCharaEquip/getCharaEquip?charaId={0}", this.CurrentCharId);
         return this.PostResult <List <Equipment> >(path, null);
     }));
 }
        public override void Execute()
        {
            string eid = GetQuery("eid");

            this._site.EquipUnBind(eid);

            CharacterEquipCache.ClearCache(this._site.CurrentCharId);

            Response.WriteAsync(JsonUtil.Serialize(new { }));
        }
        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 { }));
        }