少年修仙传客户端代码仓库
client_Wu Xijin
2018-09-30 8d48ab2145d2a2e2c635a66c65f45f9a3ebe67c8
3335 ios打包添加appstore审核期限,在这个期限内,不访问后台
2个文件已修改
54 ■■■■ 已修改文件
Core/GameEngine/Model/ConfigManager.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Login/GameNotice.cs 49 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/ConfigManager.cs
@@ -27,6 +27,11 @@
        SnxxzGame.Instance.AddApplicationOutAction(OnApplicationOut);
    }
    public void LoadPriorBundleConfig()
    {
        StartSyncTask<PriorBundleConfig>(AssetPath.Resource);
    }
    public void PreLoadConfigs()
    {
        StartSyncTask<PriorBundleConfig>(AssetPath.Resource);
System/Login/GameNotice.cs
@@ -9,11 +9,18 @@
    public static void OpenGameNotice()
    {
#if !UNITY_EDITOR
        var url = VersionUtility.Instance.versionInfo.GetNoticeURL(VersionConfig.Get().branch);
        if (!string.IsNullOrEmpty(url) && !noticeShowed)
        try
        {
            SDKUtility.Instance.OpenUrl(url);
            noticeShowed = true;
            var url = VersionUtility.Instance.versionInfo.GetNoticeURL(VersionConfig.Get().branch);
            if (!string.IsNullOrEmpty(url) && !noticeShowed)
            {
                SDKUtility.Instance.OpenUrl(url);
                noticeShowed = true;
            }
        }
        catch (System.Exception ex)
        {
            noticeShowed = true;
        }
#endif
    }
@@ -21,8 +28,22 @@
    public static bool HasNotice()
    {
#if !UNITY_EDITOR
        var url = VersionUtility.Instance.versionInfo.GetNoticeURL(VersionConfig.Get().branch);
        return !string.IsNullOrEmpty(url);
        try
        {
            if (VersionUtility.Instance.versionInfo!=null )
            {
                var url = VersionUtility.Instance.versionInfo.GetNoticeURL(VersionConfig.Get().branch);
                return !string.IsNullOrEmpty(url);
            }
            else
            {
                return false;
            }
        }
        catch (System.Exception ex)
        {
            return false;
        }
#else
        return false;
#endif
@@ -31,11 +52,19 @@
    public static void OpenGameNoticeForce()
    {
#if !UNITY_EDITOR
        var url = VersionUtility.Instance.versionInfo.GetNoticeURL(VersionConfig.Get().branch);
        if (!string.IsNullOrEmpty(url) )
       try
        {
            SDKUtility.Instance.OpenUrl(url);
        }
            var url = VersionUtility.Instance.versionInfo.GetNoticeURL(VersionConfig.Get().branch);
            if (!string.IsNullOrEmpty(url))
            {
                SDKUtility.Instance.OpenUrl(url);
            }
        }
       catch (System.Exception ex)
       {
            Debug.Log(ex);
       }
#endif
    }