diff --git a/handler/steamplaying/steam_playing.go b/handler/steamplaying/steam_playing.go index 203b56c..156058e 100644 --- a/handler/steamplaying/steam_playing.go +++ b/handler/steamplaying/steam_playing.go @@ -187,6 +187,13 @@ func RoundCheckSteamPlaying() { exitInfoMap := map[string]GameExitInfo{} util.AddCycleTask("checkSteamPlaying", 15*time.Second, 15*time.Second, func() { + // 检查当前时间是否在凌晨1点至早上8点之间 + now := time.Now() + hour := now.Hour() + if hour >= 1 && hour < 8 { + return + } + allSteamIDs, err := getAllSteamID() if err != nil { fmt.Println("获取所有steamID失败: ", err)