LongdanSubcdResponseCtrl.cs 785 B

1234567891011121314151617181920212223
  1. using XGame.Framework.Network;
  2. namespace FL.Network
  3. {
  4. public class LongdanSubcdResponseCtrl : MsgController<LongdanSubcdResponse>
  5. {
  6. protected override void OnProcess(LongdanSubcdResponse message, object context)
  7. {
  8. if (message?.code == 0)
  9. {
  10. XGame.Log.Info("100405宝箱加速消息返回LongdanSubcdResponseCtrl");
  11. // 宝箱升级加速成功
  12. EventSingle.Instance.Notify(EventDefine.RefreshUpgradeTime);
  13. // 临时处理观看广告减少时间
  14. if (AdvertisementData.Instance.Id != null)
  15. {
  16. AdvertisementService.Instance.SendToAdSucess(AdvertisementData.Instance.Id);
  17. }
  18. }
  19. }
  20. }
  21. }