fix:更换sdk,修复bug
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user