Skip to content

Commit e0d4c34

Browse files
committed
fix(登录组件): 修复玩家登录查询时未禁用跟踪的问题
在LoginComponent的OnPlayerLogin方法中,添加了禁用实体跟踪的参数,以避免不必要的性能开销
1 parent 770da60 commit e0d4c34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GameFrameX.Apps/Account/Login/Component/LoginComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public sealed class LoginComponent : StateComponent<LoginState>
4343
public async Task<PlayerState> OnPlayerLogin(ReqPlayerLogin reqLogin)
4444
{
4545
MetricsPlayerHelper.LoginCounterOptions.Inc();
46-
return await GameDb.FindAsync<PlayerState>(m => m.Id == reqLogin.Id);
46+
return await GameDb.FindAsync<PlayerState>(m => m.Id == reqLogin.Id, false);
4747
}
4848
}

0 commit comments

Comments
 (0)