|
@@ -48,10 +48,10 @@ namespace GFGGame
|
|
{
|
|
{
|
|
ActivityGlobalDataManager.Instance.AddActivityInfo(new ActivityInfo
|
|
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 =
|
|
var response =
|
|
(S2C_CloseActivity)await MessageHelper.SendToServer(new C2S_CloseActivity()
|
|
(S2C_CloseActivity)await MessageHelper.SendToServer(new C2S_CloseActivity()
|
|
- { ActivityId = activityId });
|
|
|
|
|
|
+ { ActivityId = activityId });
|
|
if (!(response is { Error: ErrorCode.ERR_Success }))
|
|
if (!(response is { Error: ErrorCode.ERR_Success }))
|
|
{
|
|
{
|
|
Log.Error("ReqCloseActivity error");
|
|
Log.Error("ReqCloseActivity error");
|
|
@@ -73,13 +73,13 @@ namespace GFGGame
|
|
//C2S_GetActivityBonus
|
|
//C2S_GetActivityBonus
|
|
public static async ETTask<bool> ReqGetActivityBonus(int activityId, int bonusId)
|
|
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;
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|