优化离线时间

This commit is contained in:
hahwu 2025-02-11 18:12:13 +08:00
parent 8d6834ac1f
commit 0c12dd7bc7
2 changed files with 2 additions and 2 deletions

View File

@ -2941,7 +2941,7 @@ func ReqPlayroomInfo(args []interface{}) error {
}
PlayerData := G_GameLogicPtr.GetSimplePlayerByUid(Targer)
PlayroomMod.SetTarget(Targer)
if PlayerData.Loginout < GoUtil.Now()-int64(playroomCfg.GetGameOutline()) { // todo DEBUG
if PlayerData.Loginout > 0 && PlayerData.Loginout < GoUtil.Now()-int64(playroomCfg.GetGameOutline()) { // todo DEBUG
PlayroomMod.SetGameId(1)
Star := min(500, max(PlayerData.Star/10, 10))
ChessMod := player.PlayMod.getChessMod()

View File

@ -47,7 +47,7 @@ func (b *Base) InitData(Uid int) {
func (b *Base) Login() {
b.LoginTime = GoUtil.Now()
// b.LogoutTime = 0
b.LogoutTime = 0
}
func (b *Base) GetNickName() string {