mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-12-05 08:09:02 +00:00
修复注册成功后的一个小问题
This commit is contained in:
parent
349a35f28a
commit
686c67dc58
@ -56,6 +56,8 @@ namespace Milimoe.FunGame.Desktop.Model
|
||||
{
|
||||
Register.OnSucceedRegEvent(Register.EventArgs);
|
||||
Register.OnAfterRegEvent(Register.EventArgs);
|
||||
Register.Close();
|
||||
return;
|
||||
}
|
||||
}
|
||||
Register.OnFailedRegEvent(Register.EventArgs);
|
||||
@ -67,7 +69,7 @@ namespace Milimoe.FunGame.Desktop.Model
|
||||
{
|
||||
try
|
||||
{
|
||||
Core.Library.Common.Network.Socket? Socket = RunTime.Socket;
|
||||
Socket? Socket = RunTime.Socket;
|
||||
if (Socket != null && objs != null)
|
||||
{
|
||||
string username = "";
|
||||
@ -91,7 +93,7 @@ namespace Milimoe.FunGame.Desktop.Model
|
||||
{
|
||||
try
|
||||
{
|
||||
Core.Library.Common.Network.Socket? Socket = RunTime.Socket;
|
||||
Socket? Socket = RunTime.Socket;
|
||||
if (Socket != null && objs != null)
|
||||
{
|
||||
string username = "";
|
||||
|
||||
@ -156,7 +156,7 @@ namespace Milimoe.FunGame.Desktop.UI
|
||||
{
|
||||
string username = ((RegisterEventArgs)e).Username;
|
||||
string password = ((RegisterEventArgs)e).Password;
|
||||
if (LoginController.LoginAccount(username, password)) Close();
|
||||
LoginController.LoginAccount(username, password);
|
||||
return EventResult.Success;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user