fix: 优化Steam游戏重复登录通知逻辑
This commit is contained in:
parent
3a26404755
commit
78b0b63f90
@ -249,7 +249,11 @@ func RoundCheckSteamPlaying() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if exitInfo.GameID == currentGameID && time.Since(exitInfo.ExitTime) <= 30*time.Minute {
|
if exitInfo.GameID == currentGameID && time.Since(exitInfo.ExitTime) <= 30*time.Minute {
|
||||||
// 30分钟内重新登录同一游戏,不发送通知
|
// 30分钟内重新登录同一游戏,更新退出时间并跳过通知
|
||||||
|
exitInfoMap[steamId] = GameExitInfo{
|
||||||
|
GameID: currentGameID,
|
||||||
|
ExitTime: time.Now(),
|
||||||
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// 清除退出记录
|
// 清除退出记录
|
||||||
|
Loading…
x
Reference in New Issue
Block a user