Browse Source

feat 活动协议进度值

Jae 2 years ago
parent
commit
3b63b6eb7f

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

@@ -27,7 +27,7 @@ namespace ET
             await ETTask.CompletedTask;
         }
     }
-    
+
     //S2C_SyncActivityCountValue
     public class S2C_SyncActivityCountValueHandler : AMHandler<S2C_SyncActivityCountValue>
     {
@@ -61,7 +61,8 @@ namespace GFGGame
                     ActivityId = activityInfo.ActivityId,
                     StartTime = activityInfo.StartTime,
                     EndTime = activityInfo.EndTime,
-                    GetRewards = activityInfo.GetRewards
+                    GetRewards = activityInfo.GetRewards,
+                    CountValue = activityInfo.CountValue
                 });
             });
         }
@@ -70,8 +71,7 @@ namespace GFGGame
         public static async ETTask<bool> ReqCloseActivity(int activityId)
         {
             var response =
-                (S2C_CloseActivity)await MessageHelper.SendToServer(new C2S_CloseActivity()
-                { ActivityId = activityId });
+                (S2C_CloseActivity)await MessageHelper.SendToServer(new C2S_CloseActivity { ActivityId = activityId });
             if (!(response is { Error: ErrorCode.ERR_Success }))
             {
                 Log.Error("ReqCloseActivity error");
@@ -85,7 +85,7 @@ namespace GFGGame
         {
             var response =
                 (S2C_GetActivityBonus)await MessageHelper.SendToServer(new C2S_GetActivityBonus()
-                { ActivityId = activityId, BonusId = bonusId });
+                    { ActivityId = activityId, BonusId = bonusId });
             if (!(response is { Error: ErrorCode.ERR_Success })) return false;
             //奖励弹窗
             BonusController.TryShowBonusList(ItemUtil.CreateItemDataList(response.itemList));