public static void Ret_Login(GC_LOGIN_RET.LOGINRESULT result, int validateResult) { PlatformHelper.SendUserAction(UserBehaviorDefine.LoginVarifyTokenFinish); if (result == GC_LOGIN_RET.LOGINRESULT.ACCOUNTVERIFYFAIL) { PlatformHelper.SendUserAction(UserBehaviorDefine.VerifyResult + ((int)result).ToString() + validateResult); } else { PlatformHelper.SendUserAction(UserBehaviorDefine.VerifyResult + ((int)result).ToString()); } LogModule.DebugLog("connect result: " + result.ToString() + " validateResult: " + validateResult); UIManager.CloseUI(UIInfo.QueueWindow); MessageBoxLogic.CloseBox(); if (result == GC_LOGIN_RET.LOGINRESULT.SUCCESS) { LoginUILogic.Instance().LoginSuccess(); } else if (result == GC_LOGIN_RET.LOGINRESULT.ACCOUNTVERIFYFAIL) { // 登录失败 if (validateResult == 6) { PlatformHelper.UserLogout(); accountData.CleanData(); MessageBoxLogic.OpenOKBox(2369, 1000, SDKVarifyFail); } else { string strTip = StrDictionary.GetClientDictionaryString("#{1284}", (int)validateResult); string strTitle = StrDictionary.GetClientDictionaryString("#{1000}"); MessageBoxLogic.OpenOKBox(strTip, strTitle); } } else if (result == GC_LOGIN_RET.LOGINRESULT.ALREADYLOGIN) { // 该账户已经登录 MessageBoxLogic.OpenOKBox(1285, 1000); } else if (result == GC_LOGIN_RET.LOGINRESULT.READROLELISTFAIL) { // 获取角色列表失败 MessageBoxLogic.OpenOKBox(1286, 1000); } else if (result == GC_LOGIN_RET.LOGINRESULT.QUEUEFULL) { // 队伍已满,请稍后尝试 MessageBoxLogic.OpenOKBox(1852, 1000); } else if (result == GC_LOGIN_RET.LOGINRESULT.VERSIONNOTMATCH || result == GC_LOGIN_RET.LOGINRESULT.PACKETNOTMATCH) { // 客户端版本过低 MessageBoxLogic.OpenOKBox(2161, 1000, VersionNotMatch); } else if (result == GC_LOGIN_RET.LOGINRESULT.NEEDFORCEENTER) { if (null != ServerChooseController.Instance()) { ServerChooseController.Instance().ShowForceEnterTip(true); } else { MessageBoxLogic.OpenOKBox(2161, 1000, VersionNotMatch); } } else { MessageBoxLogic.OpenOKBox(1287, 1000); } }