fix:1、修复bug
This commit is contained in:
@@ -61,8 +61,8 @@ namespace RedHotRoast {
|
||||
|
||||
TrackKit.TrackLoginFunnel(LoginFunnelEventType.LoadFinish); //加载完成打点
|
||||
|
||||
TextureHelper.imgUrl = CdnURL + "/" + (IsOrganic() ? GetCommonConf().ResVersion : GetCommonConf().ResVersion1) + "/";
|
||||
LiveVideoManager.videoBaseUrl = CdnURL + "/" + (IsOrganic() ? GetCommonConf().ResVersion : GetCommonConf().ResVersion1) + "/";
|
||||
TextureHelper.imgUrl = CdnURL + "/" + GetConfigResVersion() + "/";
|
||||
LiveVideoManager.videoBaseUrl = CdnURL + "/" + GetConfigResVersion() + "/";
|
||||
|
||||
// ParseGameConfig();
|
||||
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.NetLoadingUI_Close);
|
||||
@@ -175,7 +175,7 @@ namespace RedHotRoast {
|
||||
|
||||
private static List<T> GetConfigWithOrganicFallback<T, TOrganic>() where T : class
|
||||
{
|
||||
if (IsOrganic())
|
||||
if (!IsOrganic())
|
||||
{
|
||||
var organicConfig = ConfigLoader.Instance.GetConfig<List<TOrganic>>();
|
||||
if (organicConfig != null)
|
||||
@@ -188,6 +188,11 @@ namespace RedHotRoast {
|
||||
return GetConfig<T>();
|
||||
}
|
||||
|
||||
public static string GetConfigResVersion()
|
||||
{
|
||||
return IsOrganic() ? GetCommonConf().ResVersion : GetCommonConf().ResVersion1;
|
||||
}
|
||||
|
||||
public static List<Live> GetLiveConfig()
|
||||
{
|
||||
return GetConfigWithOrganicFallback<Live, Live_A>();
|
||||
|
||||
Reference in New Issue
Block a user