chat
This commit is contained in:
@@ -12,7 +12,8 @@ public static class AuthenticationHelper
|
||||
/// <param name="userName">用户名</param>
|
||||
/// <param name="password">用户密码</param>
|
||||
/// <returns></returns>
|
||||
public static async FTask<(uint ErrorCode, long AccountId)> Login(Scene scene, string userName, string password)
|
||||
public static async FTask<(uint ErrorCode, long AccountId, int region)> Login(Scene scene, string userName,
|
||||
string password)
|
||||
{
|
||||
return await scene.GetComponent<AuthenticationComponent>().Login(userName, password);
|
||||
}
|
||||
@@ -22,12 +23,12 @@ public static class AuthenticationHelper
|
||||
/// </summary>
|
||||
/// <param name="scene"></param>
|
||||
/// <param name="username">用户名</param>
|
||||
/// <param name="password">用户密码</param>
|
||||
/// <param name="region">注册地区</param>
|
||||
/// <param name="source">注册的来源/原因</param>
|
||||
/// <returns></returns>
|
||||
public static async FTask<uint> Register(Scene scene, string username, string password, string source)
|
||||
public static async FTask<uint> Register(Scene scene, string username, int region, string source)
|
||||
{
|
||||
return await scene.GetComponent<AuthenticationComponent>().Register(username, password, source);
|
||||
return await scene.GetComponent<AuthenticationComponent>().Register(username, region, source);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user