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