Ver Fonte

修改大小写报错

zhaoyang há 3 anos atrás
pai
commit
1e1ce0ece0

+ 1 - 1
GameClient/Assets/Game/CSShare

@@ -1 +1 @@
-Subproject commit 6d5b81d457f66747f9bc40378e2267c4336454a0
+Subproject commit 51295e8448759c276f71656eda26fc0060dbc837

+ 11 - 11
GameClient/Assets/Game/HotUpdate/ServerProxy/InstanceZonesSProxy.cs

@@ -13,9 +13,9 @@ namespace GFGGame
         {
             M2C_GetInstanceZonesInfos response = null;
             response = (M2C_GetInstanceZonesInfos)await MessageHelper.SendToServer(new C2M_GetInstanceZonesInfos());
-            if(response != null)
+            if (response != null)
             {
-                if(response.Error == ErrorCode.ERR_Success)
+                if (response.Error == ErrorCode.ERR_Success)
                 {
                     InstanceZonesDataManager.InitScoreList(response.ksScore, response.vsScore);
                     InstanceZonesDataManager.InitStarList(response.ksStar, response.vsStar);
@@ -58,25 +58,25 @@ namespace GFGGame
                 NpcScore = npcScore,
                 UseRecommend = useRecomend
             });
-            if(response != null)
+            if (response != null)
             {
-                if(response.Error == ErrorCode.ERR_Success)
+                if (response.Error == ErrorCode.ERR_Success)
                 {
                     //更新数据
                     InstanceZonesDataManager.TryUpdateScore(response.LevelCfgId, response.Score);
                     InstanceZonesDataManager.TryUpdateLevelStar(response.LevelCfgId, response.Star);
                     //展示奖励
                     List<ItemData> bonusList = StoryBonusDataCache.GetBonusList(response.LevelCfgId, response.HasOnceBonus);
-                    if(response.RandomBonusList != null)
+                    if (response.RandomBonusList != null)
                     {
-                        foreach(var item in response.RandomBonusList)
+                        foreach (var item in response.RandomBonusList)
                         {
                             var itemData = ItemUtil.createItemData(item.ConfigId, item.Count);
                             bonusList.Add(itemData);
                         }
                     }
 
-                    if(response.HasOnceBonus)
+                    if (response.HasOnceBonus)
                     {
                         //首次通过要检查是否有功能开启
                         FunctionOpenDataManager.Instance.CheckHasChapterFunOpen(response.LevelCfgId);
@@ -109,7 +109,7 @@ namespace GFGGame
             {
                 if (response.Error == ErrorCode.ERR_Success)
                 {
-                    InstanceZonesDataManager.TryUpdateScore(response.LevelCfgId, response.Score); 
+                    InstanceZonesDataManager.TryUpdateScore(response.LevelCfgId, response.Score);
                 }
             }
         }
@@ -121,7 +121,7 @@ namespace GFGGame
             response = (M2C_FinishInstanceZonesFightQuickly)await MessageHelper.SendToServer(new C2M_FinishInstanceZonesFightQuickly()
             {
                 LevelCfgId = levelCfgId,
-                times = times
+                Times = times
             });
             if (response != null)
             {
@@ -129,13 +129,13 @@ namespace GFGGame
                 {
                     List<List<ItemData>> bonusLists = new List<List<ItemData>>();
                     List<ItemData> allList = new List<ItemData>();
-                    foreach(var proto in response.RandomBonusList)
+                    foreach (var proto in response.RandomBonusList)
                     {
                         var itemData = ItemUtil.createItemData(proto.ConfigId, proto.Count);
                         allList.Add(itemData);
                     }
                     var index = 0;
-                    for(int i = 0; i < response.BonusLengths.Count; ++i)
+                    for (int i = 0; i < response.BonusLengths.Count; ++i)
                     {
                         var len = response.BonusLengths[i];
 

+ 2 - 2
GameClient/Assets/Game/HotUpdate/ServerProxy/ItemExchangeSProxy.cs

@@ -7,12 +7,12 @@ namespace GFGGame
         public static async ETTask<bool> ItemExchange(int buyId, int buyCount)
         {
             M2C_ItemExchange response = null;
-            response = (M2C_ItemExchange)await MessageHelper.SendToServer(new C2M_ItemExchange() { ItemId = buyId, times = buyCount });
+            response = (M2C_ItemExchange)await MessageHelper.SendToServer(new C2M_ItemExchange() { ItemId = buyId, Times = buyCount });
             if (response != null)
             {
                 if (response.Error == ErrorCode.ERR_Success)
                 {
-                    ItemDataManager.InitItemExchange(response.ItemId, response.times);
+                    ItemDataManager.InitItemExchange(response.ItemId, response.Times);
                     EventAgent.DispatchEvent(ConstMessage.SHOP_BUY);
                     return true;
                 }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/ServerProxy/MainStorySProxy.cs

@@ -32,7 +32,7 @@ namespace GFGGame
             {
                 if (response.Error == ErrorCode.ERR_Success)
                 {
-                    MainStoryDataManager.InitBoxBonusStates(response.ksBonusState, response.vsBonusState);
+                    MainStoryDataManager.InitBoxBonusStates(response.KsBonusState, response.VsBonusState);
                 }
             }
         }