Ejemplo n.º 1
0
        /// <summary>
        /// 重新加载client配置
        /// </summary>
        public void ReloadClient()
        {
            //TableMagr.Get().Initialize();
            DataProviderSystem.Instance.Destroy();
            DataProviderSystem.Instance.Init();

            LocalStorageSystem.Get().Init();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 使用此接口调用第三方登录
 /// </summary>
 public void Login()
 {
     if (string.IsNullOrEmpty(LocalAccountStorage.Get().account))
     {
         DateTime start     = new DateTime(1970, 1, 1);
         long     timeStamp = (long)(DateTime.Now - start).TotalSeconds;
         LocalAccountStorage.Get().account      = SystemInfo.deviceUniqueIdentifier;
         LocalAccountStorage.Get().regtimeStamp = timeStamp;
         LocalStorageSystem.Get().SaveLocalAccount();
         Flurry.Instance.FlurryLoginEvent("Login", "0");
     }
     else
     {
         Flurry.Instance.FlurryLoginEvent("Login", "1");
     }
     OnSDKLogin(LocalAccountStorage.Get().account);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 第三方sdk登录结果回调
 /// </summary>
 public void OnSDKLogin(string account)
 {
     LocalAccountStorage.Get().account = account;
     LocalStorageSystem.Get().NeedSaveToDisk();
     EventSystem.Instance.FireEvent(EventId.OnSDKLoginResult, account);
 }