大修改
This commit is contained in:
@@ -105,21 +105,6 @@ public static class PlayerManageComponentSystem
|
||||
|
||||
account.Statistics.LoginTime = TimeHelper.Now;
|
||||
|
||||
|
||||
if (account.GetComponent<MailComponent>() == null)
|
||||
{
|
||||
var mailComponent = await scene.World.DataBase.Query<MailComponent>(account.Id, true);
|
||||
if (mailComponent == null)
|
||||
{
|
||||
//如果没有邮件组件
|
||||
account.AddComponent<MailComponent>();
|
||||
}
|
||||
else
|
||||
{
|
||||
account.AddComponent(mailComponent);
|
||||
}
|
||||
}
|
||||
|
||||
await account.Save();
|
||||
|
||||
return account;
|
||||
|
||||
Reference in New Issue
Block a user