|
@@ -190,15 +190,16 @@ namespace GFGGame
|
|
|
}
|
|
|
|
|
|
//获取成长基金消息
|
|
|
- public static async ETTask<bool> ReqGetGrowthFundInfo(int activityID)
|
|
|
+ public static async ETTask<bool> ReqGetGrowthFundInfo(int activityID = 3002)
|
|
|
{
|
|
|
ActivityOpenCfg activityCfg = ActivityOpenCfgArray.Instance.GetCfg(activityID);
|
|
|
if(RoleDataManager.lvl < activityCfg.level || ShopDataManager.Instance.GrowthFundRewardList.Count == GrowthFundCfgArray.Instance.dataArray.Length)
|
|
|
{
|
|
|
return false;
|
|
|
}
|
|
|
- S2C_GetGrowthFundRewrd response = null;
|
|
|
- response = (S2C_GetGrowthFundRewrd)await MessageHelper.SendToServer(new C2S_GetGrowthFundRewrd() { ActivityId = activityID});
|
|
|
+ ShopDataManager.Instance.GrowthFundRewardList.Clear();
|
|
|
+ S2C_GetGrowthFundRewrdStatus response = null;
|
|
|
+ response = (S2C_GetGrowthFundRewrdStatus)await MessageHelper.SendToServer(new C2S_GetGrowthFundRewrdStatus() { ActivityId = activityID});
|
|
|
if (response != null)
|
|
|
{
|
|
|
if (response.Error == ErrorCode.ERR_Success)
|
|
@@ -218,7 +219,7 @@ namespace GFGGame
|
|
|
{
|
|
|
if (response.Error == ErrorCode.ERR_Success)
|
|
|
{
|
|
|
- ShopDataManager.Instance.GrowthFundRewardList = response.RewrdIds;
|
|
|
+ ShopDataManager.Instance.GrowthFundRewardList.Add(id);
|
|
|
BonusController.TryShowBonusList(ItemUtil.CreateItemDataList(response.BonusList));
|
|
|
return true;
|
|
|
}
|