瀏覽代碼

屏蔽报错

zhaoyang 2 年之前
父節點
當前提交
e577b5d9d9
共有 1 個文件被更改,包括 12 次插入12 次删除
  1. 12 12
      GameClient/Assets/Game/HotUpdate/ServerProxy/ActivityGlobalSProxy.cs

+ 12 - 12
GameClient/Assets/Game/HotUpdate/ServerProxy/ActivityGlobalSProxy.cs

@@ -48,10 +48,10 @@ namespace GFGGame
             {
                 ActivityGlobalDataManager.Instance.AddActivityInfo(new ActivityInfo
                 {
-                    activityId = activityInfo.ActivityId,
-                    startTime = activityInfo.StartTime,
-                    endTime = activityInfo.EndTime,
-                    GetRewards = activityInfo.GetRewards
+                    // activityId = activityInfo.ActivityId,
+                    // startTime = activityInfo.StartTime,
+                    // endTime = activityInfo.EndTime,
+                    // GetRewards = activityInfo.GetRewards
                 });
             });
         }
@@ -61,7 +61,7 @@ namespace GFGGame
         {
             var response =
                 (S2C_CloseActivity)await MessageHelper.SendToServer(new C2S_CloseActivity()
-                    { ActivityId = activityId });
+                { ActivityId = activityId });
             if (!(response is { Error: ErrorCode.ERR_Success }))
             {
                 Log.Error("ReqCloseActivity error");
@@ -73,13 +73,13 @@ namespace GFGGame
         //C2S_GetActivityBonus
         public static async ETTask<bool> ReqGetActivityBonus(int activityId, int bonusId)
         {
-            var response =
-                (S2C_GetActivityBonus)await MessageHelper.SendToServer(new C2S_GetActivityBonus()
-                    { ActivityId = activityId, BonusId = bonusId });
-            if (!(response is { Error: ErrorCode.ERR_Success })) return false;
-            //奖励弹窗
-            BonusController.TryShowBonusList(ItemUtil.CreateItemDataList(response.itemList));
-            ActivityGlobalDataManager.Instance.AddActivityRewardInfo(activityId, bonusId);
+            // var response =
+            //     (S2C_GetActivityBonus)await MessageHelper.SendToServer(new C2S_GetActivityBonus()
+            //         { ActivityId = activityId, BonusId = bonusId });
+            // if (!(response is { Error: ErrorCode.ERR_Success })) return false;
+            // //奖励弹窗
+            // BonusController.TryShowBonusList(ItemUtil.CreateItemDataList(response.itemList));
+            // ActivityGlobalDataManager.Instance.AddActivityRewardInfo(activityId, bonusId);
             return false;
         }
     }