using FL.Data; using XGame.Framework.Network; namespace FL.Network { public class ActShengbingShangzhenPushCtrl : MsgController { protected override void OnProcess(ActShengbingShangzhenPush message, object context) { foreach (var cao in message.shangzhen) { if (PartnersData.Instance.UpSbMap.TryGetValue(cao.caoId, out var id)) { PartnersData.Instance.UpSbMap.Remove(cao.caoId); PartnersData.Instance.UpSbMap.Add(cao.caoId, cao.sbId); } else { PartnersData.Instance.UpSbMap.Add(cao.caoId, cao.sbId); } } } } }