fix:1、sdk更换。2、修复bug

This commit is contained in:
2026-07-07 14:03:12 +08:00
parent 63b530f245
commit e3b0b9b008
1617 changed files with 134668 additions and 62343 deletions
+29 -15
View File
@@ -52,22 +52,25 @@ namespace ChillConnect
try
{
// 添加空值检查,防止 NullReferenceException
var makeupTaskHistory = DataMgr.MakeupTaskHistory?.Value;
if (makeupTaskHistory != null && makeupTaskHistory.Any())
if (DataMgr.MakeupTaskHistory != null)
{
var makeupTaskData = makeupTaskHistory.Last();
var config = ConfigSystem.GetConfig<MakeupModel>();
if (config != null)
var makeupTaskHistory = DataMgr.MakeupTaskHistory?.Value;
if (makeupTaskHistory != null && makeupTaskHistory.Any())
{
var vo = config.GetData(makeupTaskData.tableId);
if (vo != null && ui?.text_level_limit != null)
var makeupTaskData = makeupTaskHistory.Last();
var config = ConfigSystem.GetConfig<MakeupModel>();
if (config != null)
{
var stage= vo.levels_need - GameHelper.GetLevel();
if(stage <= 0)
var vo = config.GetData(makeupTaskData.tableId);
if (vo != null && ui != null && ui.text_level_limit != null)
{
stage = 1;
var stage = vo.levels_need - GameHelper.GetLevel();
if (stage <= 0)
{
stage = 1;
}
ui.text_level_limit.SetVar("x", stage.ToString()).FlushVars();
}
ui.text_level_limit.SetVar("x", stage.ToString()).FlushVars();
}
}
}
@@ -79,7 +82,11 @@ namespace ChillConnect
}
InitView();
// 添加 ui 空值检查
if (ui != null)
{
InitView();
}
}
@@ -107,16 +114,23 @@ namespace ChillConnect
}
#endregion
//初始化页面逻辑`
//初始化页面逻辑
private void InitView()
{
// 添加空值检查
if (ui == null || ui.t0 == null)
{
return;
}
ui.t0.Play(() =>
{
DOVirtual.DelayedCall(0.2f, () =>
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.OpenGameUI_Close);
if (UICtrlDispatcher.Instance != null)
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.OpenGameUI_Close);
}
});
});