| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 | 
							- using ET;
 
- using GFGGame;
 
- namespace ET
 
- {
 
-     public class M2C_NoticeUnitNumericHandler : AMHandler<M2C_NoticeUnitNumeric>
 
-     {
 
-         protected override async ETTask Run(Session session, M2C_NoticeUnitNumeric message)
 
-         {
 
-             if (GameGlobal.myNumericComponent == null) return;//如果为空表示角色还没有进入游戏,忽略
 
-             var oldValue = GameGlobal.myNumericComponent.GetAsInt(message.NumericType);
 
-             GameGlobal.myNumericComponent.Set(message.NumericType, message.NewValue);
 
-             switch (message.NumericType)
 
-             {
 
-                 case NumericType.Lvl:
 
-                     FunctionOpenDataManager.Instance.CheckHasLvFunOpen((int)message.NewValue,
 
-                         oldValue); //等级变化要加测是否有功能开启
 
-                     RoleDataManager.RoleLvUp(oldValue);
 
-                     break;
 
-                 case NumericType.Power:
 
-                     RoleDataManager.powerTimeServerLock = false;
 
-                     break;
 
-                 case NumericType.DailyLiveness:
 
-                 case NumericType.WeeklyLiveness:
 
-                     EventAgent.DispatchEvent(ConstMessage.LIVENESS_CHANGE);
 
-                     break;
 
-                 case NumericType.PassLevel:
 
-                     EventAgent.DispatchEvent(ConstMessage.BATTLEPASS_LEVEL_CHANGE);
 
-                     break;
 
-             }
 
-             EventAgent.DispatchEvent(ConstMessage.NUMERIC_CHANGE, message.NumericType);
 
-             EventAgent.DispatchEvent(ConstMessage.RED_CHANGE, message.NumericType);
 
-             await ETTask.CompletedTask;
 
-         }
 
-     }
 
- }
 
- namespace GFGGame
 
- {
 
-     public static class CommonSProxy
 
-     {
 
-         //客户端请求每日重置
 
-         public static async ETTask ResetDailyData()
 
-         {
 
-             M2C_ResetDailyData response = null;
 
-             response = (M2C_ResetDailyData)await MessageHelper.SendToServer(new C2M_ResetDailyData());
 
-             if (response != null)
 
-             {
 
-                 if (response.Error == ErrorCode.ERR_Success)
 
-                 {
 
-                     // RechargeSProxy.ReqRequestGiftBagInfo().Coroutine();
 
-                     // RechargeSProxy.ReqExchangeInfo().Coroutine();
 
-                     ShopSProxy.ReqShopInfo().Coroutine();
 
-                     DailyTaskSProxy.ReqDailyTaskInfos().Coroutine();
 
-                     SuitFosterProxy.SendGetSuitInfos().Coroutine();
 
-                     FieldSProxy.ReqFieldInstanceInfos().Coroutine();
 
-                     ArenaSproxy.ReqArenaInfos().Coroutine();
 
-                     EnduringGiftBoxSProxy.ReqGetAllGiftBagRebateStatus().Coroutine();
 
-                     LuckyBoxSProxy.ReqGetLuckyBoxRotatingInfo().Coroutine();
 
-                     RoleLimitSProxy.ReqUnitLimitInfos().Coroutine();
 
-                     await ActivitySProxy.ReqSevenDayLoginInfos();
 
-                     await ActivityGlobalSProxy.GetActivityInfo();
 
-                     await ActivityAfuGiftSProxy.GetAfuGiftInfo();
 
-                     await ActivityTeaSProxy.ReqGetNPCVisitInfo();
 
-                     await MiniGameProxy.ReqGetChallengeReward();
 
-                     ActivitySProxy.ReqGetActivitySignInfos().Coroutine();
 
-                     await NewYearRedEnvelopeSProxy.ReqGetRedPacketInfo();
 
-                     await ActivityGetYuanXiaoProxy.ReqGetActivityGameInfos();
 
-                     await ActivityFYJYProxy.ReqGetActivityGameInfos();
 
-                     ActivityDataManager.Instance.todayActivityTips = GameGlobal.myNumericComponent.GetAsInt(NumericType.IsPropYchmActivity);
 
-                     ActivityDataManager.Instance.todayMonthlyCardTips = GameGlobal.myNumericComponent.GetAsInt(NumericType.IsPropCzykActivity);
 
-                     EventAgent.DispatchEvent(ConstMessage.RESET_DAILY_DATA);
 
-                     PromptController.Instance.ShowFloatTextPrompt("每日次数已重置", MessageType.SUCCESS);
 
-                 }
 
-             }
 
-         }
 
-     }
 
- }
 
 
  |