Exemple #1
0
        //获取SDK信息
        static IEnumerator UF_IGetSDKInfo()
        {
            Debugger.UF_Log("==== Waiting For SDK info ====");
            IsAppCheck = false;

            //等待返回,无限期等待
            while (SDKInfo == null)
            {
                if (SDKInfo != null)
                {
                    break;
                }
                yield return(null);
            }
            if (SDKInfo != null)
            {
                Debugger.UF_Log(string.Format("SDK Info:\n{0}", SDKInfo.UF_Serialize()));
                //是否接入了SDK
                IsSdkOn = SDKInfo.UF_GetValue("SDK_ON", "0") == "1";
                //当前的APPID
                AppID = SDKInfo.UF_GetValue("APP_ID", "0");
                //查询获取审核状态
                IsAppCheck = SDKInfo.UF_GetValue("APP_CHECK", "0") == "1";
            }
            yield break;
        }
Exemple #2
0
 public static string UF_GetSDKValue(string key)
 {
     if (SDKInfo != null)
     {
         return(SDKInfo.UF_GetValue(key));
     }
     else
     {
         return(string.Empty);
     }
 }