zhaoyang %!s(int64=2) %!d(string=hai) anos
pai
achega
6e75ae4889
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      GameClient/Assets/Game/HotUpdate/ServerProxy/ShopSProxy.cs

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

@@ -146,6 +146,19 @@ namespace GFGGame
             {
                 if (response.Error == ErrorCode.ERR_Success)
                 {
+                    MonthlyCardPrivilegeCfg privilegeCfg = MonthlyCardPrivilegeCfgArray.Instance.GetCfg(MonthCardPrivilegeType.Privilege1);
+                    int[][] itemData = null;
+
+                    if (monthCardType == MonthCardType.Gold)
+                    {
+                        itemData = new int[][] { new int[] { privilegeCfg.paramsArr[0], privilegeCfg.value1Arr[0] } };
+                    }
+                    else if (monthCardType == MonthCardType.BlackGold)
+                    {
+                        itemData = new int[][] { new int[] { privilegeCfg.paramsArr[0], privilegeCfg.value2Arr[0] } };
+                    }
+                    BonusController.TryShowBonusList(itemData);
+
                     EventAgent.DispatchEvent(ConstMessage.RED_CHANGE);
                     return true;
                 }