45 lines
		
	
	
		
			995 B
		
	
	
	
		
			C#
		
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			995 B
		
	
	
	
		
			C#
		
	
	
namespace Guru
 | 
						|
{
 | 
						|
    public partial class GuruSDK
 | 
						|
    {
 | 
						|
        #region System
 | 
						|
        
 | 
						|
        /// <summary>
 | 
						|
        /// 打开页面
 | 
						|
        /// </summary>
 | 
						|
        /// <param name="url"></param>
 | 
						|
        public static void OpenURL(string url)
 | 
						|
        {
 | 
						|
            GuruWebview.OpenPage(url);
 | 
						|
        }
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// 打开隐私协议页面
 | 
						|
        /// </summary>
 | 
						|
        public static void OpenPrivacyPage()
 | 
						|
        {
 | 
						|
            if (string.IsNullOrEmpty(PrivacyUrl))
 | 
						|
            {
 | 
						|
                LogE("PrivacyUrl is null"); 
 | 
						|
                return;
 | 
						|
            }
 | 
						|
 | 
						|
            OpenURL(PrivacyUrl);
 | 
						|
        }
 | 
						|
        
 | 
						|
        /// <summary>
 | 
						|
        /// 打开服务条款页面
 | 
						|
        /// </summary>
 | 
						|
        public static void OpenTermsPage()
 | 
						|
        {
 | 
						|
            if (string.IsNullOrEmpty(TermsUrl))
 | 
						|
            {
 | 
						|
                LogE("TermsUrl is null"); 
 | 
						|
                return;
 | 
						|
            }
 | 
						|
            OpenURL(TermsUrl);
 | 
						|
        }
 | 
						|
        
 | 
						|
        #endregion
 | 
						|
    }
 | 
						|
} |