public override void Execute() { string sid = GetQuery("sid"); int type = GetQuery <int>("type"); this._site.SkillOff(sid, type); CharacterSkillCache.ClearCache(this._site.CurrentCharId); CharacterCache.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 { })); }
public List <Skill> InitCharSkills() { return(CharacterSkillCache.TryGetValue(this.CurrentCharId, id => { string path1 = string.Format("/foodie-api/gameCharaSkill/getCharaUseSkill/?charaId={0}&skillType=1", this.CurrentCharId); var skills1 = this.PostResult <List <Skill> >(path1, null); string path2 = string.Format("/foodie-api/gameCharaSkill/getCharaUseSkill/?charaId={0}&skillType=2", this.CurrentCharId); var skills2 = this.PostResult <List <Skill> >(path2, null); return skills1.Union(skills2).ToList(); })); }