Ver Fonte

修复雅集祈福显示BUG

hexiaojie há 1 ano atrás
pai
commit
7aa9d2d70a

+ 7 - 7
GameClient/Assets/Game/HotUpdate/ServerProxy/LeagueSproxy.cs

@@ -568,14 +568,14 @@ namespace GFGGame
             {
                 if (response.Error == ErrorCode.ERR_Success)
                 {
-                    if (response.Contribution > 0)
+                    if (response.CoinCount > 0)
                     {
-                        PromptController.Instance.ShowFloatTextPrompt($"获得贡献*{response.Contribution}", MessageType.SUCCESS); 
-                    }
-
-                    if (response.Coin > 0)
-                    {
-                        PromptController.Instance.ShowFloatTextPrompt($"获得雅集资金*{response.Coin}", MessageType.SUCCESS);
+                        ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(response.ItemConfigId);
+                        if (itemCfg != null)
+                        {
+                            PromptController.Instance.ShowFloatTextPrompt($"获得{itemCfg.name}*{response.CoinCount}",
+                                MessageType.SUCCESS); 
+                        }
                     }
                     
                     foreach (ItemInfoProto itemInfoProto in response.Bonus)