fix:更换sdk,修复bug

This commit is contained in:
barry
2026-06-06 16:55:32 +08:00
parent bd28506b1f
commit 7003140acc
565 changed files with 44334 additions and 43789 deletions
@@ -164,18 +164,21 @@ namespace RedHotRoast {
{
bool b = false;
if (GameHelper.IsGiftSwitch() && SuperApplication.Instance.attribution == "organic")
if (GameHelper.IsGiftSwitch())
{
b = GetCommonConf().IsOrganic == 1;
if (SuperApplication.Instance.attribution == "organic")
{
b = GetCommonConf().non == 1;
}
}
// Debug.Log($"下载---------开关:{b}");
// Debug.Log($"下载---------开关:{b} non: {GetCommonConf().non}");
return b;
}
private static List<T> GetConfigWithOrganicFallback<T, TOrganic>() where T : class
{
if (!IsOrganic())
if (IsOrganic())
{
var organicConfig = ConfigLoader.Instance.GetConfig<List<TOrganic>>();
if (organicConfig != null)
@@ -187,10 +190,10 @@ namespace RedHotRoast {
return GetConfig<T>();
}
public static string GetConfigResVersion()
{
return IsOrganic() ? GetCommonConf().ResVersion : GetCommonConf().ResVersion1;
return IsOrganic() ? GetCommonConf().ResVersion1 : GetCommonConf().ResVersion;
}
public static List<Live> GetLiveConfig()