Example #1
0
 private void onReqPlatformUserLoginSuccess(BaseWWWRequest obj)
 {
     try
     {
         this.loginPlatformUserResponse = new JsonFx.Json.JsonReader().Read <LoginPlatformResponse>(this.UTF8String);
         if (this.loginPlatformUserResponse.eid != 0)
         {
             this.onReqPlatformUserLoginFail(obj);
         }
         else
         {
             GameData.instance.LoginResponse = this.loginPlatformUserResponse;
             z.log("[登陆成功] 选择服务器继续....");
             this.OnLoginPlatformUserSuccessEvent();
         }
     }
     catch (Exception)
     {
         this.onReqPlatformUserLoginFail(obj);
     }
 }
Example #2
0
 private void onReqPlatformUserLoginSuccess(BaseWWWRequest obj)
 {
     try
     {
         this.loginPlatformUserResponse = new JsonFx.Json.JsonReader().Read<LoginPlatformResponse>(this.UTF8String);
         if (this.loginPlatformUserResponse.eid != 0)
         {
             this.onReqPlatformUserLoginFail(obj);
         }
         else
         {
             GameData.instance.LoginResponse = this.loginPlatformUserResponse;
             z.log("[登陆成功] 选择服务器继续....");
             this.OnLoginPlatformUserSuccessEvent();
         }
     }
     catch (Exception)
     {
         this.onReqPlatformUserLoginFail(obj);
     }
 }
 private void onReqPlatformUserLoginSuccess(BaseWWWRequest obj)
 {
     try
     {
         if (this.needZip)
         {
             this.loginPlatformUserResponse = JsonReader.Deserialize<LoginPlatformResponse>(base.UTF8String);
         }
         else
         {
             this.loginPlatformUserResponse = JsonReader.Deserialize<LoginPlatformResponse>(base.www.text);
         }
         if (this.loginPlatformUserResponse.eid != 0)
         {
             this.onReqPlatformUserLoginFail(obj);
         }
         else
         {
             GameData.instance.LoginResponse = this.loginPlatformUserResponse;
             SigninManager.HaveLogin = true;
             this.OnLoginPlatformUserSuccessEvent();
         }
     }
     catch (Exception)
     {
         this.onReqPlatformUserLoginFail(obj);
     }
 }