fix:1、添加sdk。2、修复bug
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace ChillConnect
|
||||
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.UpdateHotFixProgress, 97);
|
||||
|
||||
MaxADKit.SetUserID(loginData.Uid.ToString());
|
||||
// MaxADKit.SetUserID(loginData.Uid.ToString());
|
||||
|
||||
DateTimeManager.Instance.SetServerCurrTimestamp(loginData.LoginTime);
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace ChillConnect
|
||||
|
||||
private void OnRequestPlayData(object args) {
|
||||
NetApi.RequestPlayerData((isSuccess, json) => {
|
||||
// Debug.Log($"barry UserData : {json}");
|
||||
Debug.Log($"barry UserData : {json}");
|
||||
if (isSuccess) {
|
||||
var loginModel = LoginKit.Instance.LoginModel;
|
||||
if (loginModel.NewPlayer || loginModel.Uid != DataMgr.UserID.Value)
|
||||
|
||||
Reference in New Issue
Block a user