fix:1、添加sdk。2、修复bug

This commit is contained in:
barry
2026-06-11 18:30:41 +08:00
parent fcf9128dd3
commit 570f4635f2
1240 changed files with 111200 additions and 39704 deletions
+42 -34
View File
@@ -125,6 +125,7 @@ namespace ChillConnect
SaveData.GetSaveObject().CHProcessMode = ConfigSystem.GetConfig<CommonModel>().CHProcessMode;
}
CtrlDispatcher.Instance.Dispatch(CtrlMsg.Game_StartBefore);
SaveingPotHelper.ResetHistory();
}
@@ -153,40 +154,6 @@ namespace ChillConnect
LevelAttemptsModel_.config_name_list = LevelAttemptsModel_.DataList[0].user_name.Split(",").ToList();
LevelAttemptsModel_.config_money_list = LevelAttemptsModel_.DataList[0].amount.Split(",").ToList();
}
var gameUrlsModel = GetConfig<GameUrlsModel>();
if (gameUrlsModel != null && gameUrlsModel.DataList.Count > 0)
{
light_weblist.Clear();
dark_weblist.Clear();
web_through_str = "";
var allList = gameUrlsModel.DataList;
List<int> type_list = new List<int>();
for (int i = 0; i < allList.Count; i++)
{
if (allList[i].webType == 2)
{
if ((GameHelper.IsGiftSwitch() && allList[i].isMagic == 1) ||
(!GameHelper.IsGiftSwitch() && allList[i].isMagic == 0))
{
light_weblist.Add(allList[i]);
}
}
else
{
dark_weblist.Add(allList[i]);
if (!type_list.Contains(allList[i].wvType))
{
web_through_str += allList[i].wvthrough;
web_through_str += "|";
type_list.Add(allList[i].wvType);
}
}
}
web_through_str.Remove(web_through_str.Length - 1);
gameUrlsModel.DataList = light_weblist;
}
var jsonDictionary = ConfigLoader.Instance.JsonDictionary;
var gameConfigModel = new GameConfigModel("GameBoard");
@@ -221,6 +188,47 @@ namespace ChillConnect
}
ConfigLoader.Instance.AddConfig(gameConfigModel);
SetGameUrlConfig();
}
private static List<GameUrls> data_new;
public static void SetGameUrlConfig()
{
light_weblist.Clear();
dark_weblist.Clear();
web_through_str = "";
data_new = GetConfig<GameUrlsModel>().DataList;
List<int> type_list = new List<int>();
for (int i = 0; i < data_new.Count; i++)
{
if (data_new[i].webType == 2)
{
if (GameHelper.IsGiftSwitch() && (data_new[i].isMagic == 1)) light_weblist.Add(data_new[i]);
else if (!GameHelper.IsGiftSwitch() && (data_new[i].isMagic == 0)) light_weblist.Add(data_new[i]);
}
else
{
dark_weblist.Add(data_new[i]);
if (!type_list.Contains(data_new[i].wvType))
{
web_through_str += data_new[i].wvthrough;
web_through_str += "|";
type_list.Add(data_new[i].wvType);
}
}
}
web_through_str.Remove(web_through_str.Length - 1);
Debug.Log("light_weblist-----" + light_weblist.Count);
Debug.Log("dark_weblist-----"+ dark_weblist.Count);
Debug.Log("////////////////////////");
}
#endregion