public override void Execute() { string aid = GetQuery("aid"); this._site.ArmyGroupJoin(aid); CharacterConfigCache.CancelGuaji(this._site.Config); CharacterArmyGroupCache.ClearCache(this._site.CurrentCharId); var army = this._site.InitArmyGroup(); if (army != null) { foreach (var c in army.CharaInfoVoList) { var gc = CharacterCache.GetCharByNo(c.CharaNo); if (gc != null && gc.CharaId != this._site.CurrentCharId) { CharacterArmyGroupCache.ClearCache(gc.CharaId); } } } Response.WriteAsync(JsonUtil.Serialize(new { })); }
public override void Execute() { string name = GetQuery <string>("name"); this._site.ArmyGroupCreate(name); CharacterArmyGroupCache.ClearCache(this._site.CurrentCharId); CharacterConfigCache.CancelGuaji(this._site.Config); Response.WriteAsync(JsonUtil.Serialize(new { })); }