浏览代码

补充提交

zhangyuqian 1 年之前
父节点
当前提交
3411c024ee
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. 9 2
      GameClient/Assets/Game/HotUpdate/ServerProxy/ActivitySProxy.cs

+ 9 - 2
GameClient/Assets/Game/HotUpdate/ServerProxy/ActivitySProxy.cs

@@ -386,8 +386,15 @@ namespace GFGGame
             S2C_GetDataRecord response = (S2C_GetDataRecord)await MessageHelper.SendToServer(new C2S_GetDataRecord() { });
             S2C_GetDataRecord response = (S2C_GetDataRecord)await MessageHelper.SendToServer(new C2S_GetDataRecord() { });
             for (int i = 0; i < response.AllKs.Count; i++)
             for (int i = 0; i < response.AllKs.Count; i++)
             {
             {
-                ActivityDataManager.Instance.TipsStatusDic[response.AllKs[i]] = response.AllVs[i];
-                //ActivityDataManager.Instance.TipsStatusDic.Add(response.AllKs[i], response.AllVs[i]);
+                if(ActivityDataManager.Instance.TipsStatusDic.ContainsKey(response.AllKs[i]))
+                {
+                    ActivityDataManager.Instance.TipsStatusDic[response.AllKs[i]] = response.AllVs[i];
+                }
+                else
+                {
+                    ActivityDataManager.Instance.TipsStatusDic.Add(response.AllKs[i], response.AllVs[i]);
+                }
+                //
             }
             }
         }
         }
     }
     }