public void Execute(Pmd.UserLoginReturnFailLoginUserPmd_S cmd) { var error = string.Empty; switch (cmd.retcode) { case Pmd.LoginReturnFailReason.Password: error = "密码错误"; break; case Pmd.LoginReturnFailReason.ServerShutdown: error = "区服务器已关闭"; break; case Pmd.LoginReturnFailReason.VersionTooLow: error = "客户端游戏版本号太低"; break; case Pmd.LoginReturnFailReason.UserTokenFind: { error = "没有找到登陆token,需要重新平台验证"; } break; case Pmd.LoginReturnFailReason.UserTokenTempId: { error = "token错误"; } break; case Pmd.LoginReturnFailReason.UserTokenTimeOut: { error = "token已过期"; } break; case Pmd.LoginReturnFailReason.LoginDulicate: error = "重复登陆"; break; case Pmd.LoginReturnFailReason.NoGatewaytDown: error = "没有可用网关"; break; default: break; } TipsManager.Instance.ShowTips(error); DataManager.Manager <LoginDataManager>().OnLogout(true); Debug.LogError(string.Format("登陆LoginServer失败: #{0} {1}", cmd.retcode, error)); }
public static void Execute(UserLoginReturnFailLoginUserPmd_S cmd) { MessageBox.Show(cmd.retcode.ToString(), cmd.desc); }