浏览代码

成长基金补充提交

zhangyuqian 1 年之前
父节点
当前提交
0dfa311225

+ 1 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/ShopSProxy.cs

@@ -197,6 +197,7 @@ namespace GFGGame
             {
                 return false;
             }
+            ShopDataManager.Instance.GrowthFundRewardList.Clear();
             S2C_GetGrowthFundRewrdStatus response = null;
             response = (S2C_GetGrowthFundRewrdStatus)await MessageHelper.SendToServer(new C2S_GetGrowthFundRewrdStatus() { ActivityId = activityID});
             if (response != null)

+ 2 - 4
GameClient/Assets/Game/HotUpdate/Views/Store/StoreGrowthFundView.cs

@@ -104,6 +104,7 @@ namespace GFGGame
             {
                 int id = ActivityOpenCfgArray.Instance.GetCfg(3002).paramsArr[0];
                 ShopSProxy.ReqShopBuy(id).Coroutine();
+                ShopSProxy.ReqGetGrowthFundInfo().Coroutine();
             }
         }
         private async void OnBtnGetClick(EventContext context)
@@ -117,10 +118,7 @@ namespace GFGGame
             }
             UI_GrowthFundItemUI.ProxyEnd();
             bool result = await ShopSProxy.ReqGetGrowthFundReward(3002,goodsId);
-            if (result)
-            {
-                _ui.m_list.numItems = GrowthFundCfgArray.Instance.dataArray.Length;
-            }
+            _ui.m_list.numItems = GrowthFundCfgArray.Instance.dataArray.Length;
         }
 
         private void ListItemRenderer(int index, GObject obj)