更新最新框架
This commit is contained in:
@@ -59,7 +59,7 @@ internal static class AuthenticationComponentSystem
|
||||
}
|
||||
|
||||
var scene = self.Scene;
|
||||
var worldDateBase = scene.World.DataBase; //DateBase
|
||||
var worldDateBase = scene.World.Database; //DateBase
|
||||
var usernameHashCode = userName.GetHashCode();
|
||||
|
||||
using (var @lock =
|
||||
@@ -176,7 +176,7 @@ internal static class AuthenticationComponentSystem
|
||||
}
|
||||
|
||||
// 2、数据库查询该账号是否存在
|
||||
var worldDateBase = scene.World.DataBase;
|
||||
var worldDateBase = scene.World.Database;
|
||||
var isExist = await worldDateBase.Exist<Account>(d => d.Username == username);
|
||||
if (isExist)
|
||||
{
|
||||
@@ -239,7 +239,7 @@ internal static class AuthenticationComponentSystem
|
||||
|
||||
using (var @lock = await scene.CoroutineLockComponent.Wait((int)LockType.AuthenticationRemoveLock, accountId))
|
||||
{
|
||||
var worldDateBase = scene.World.DataBase;
|
||||
var worldDateBase = scene.World.Database;
|
||||
await worldDateBase.Remove<Account>(accountId);
|
||||
Log.Info($"Remove source:{source} accountId:{accountId}");
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user