diff --git a/config/account.go b/config/account.go index 1b2c8a2..eb69387 100644 --- a/config/account.go +++ b/config/account.go @@ -18,6 +18,8 @@ type Account struct { Mid string `json:"mid" yaml:"mid"` SToken string `json:"stoken" yaml:"stoken" table:",ignore"` + + SignGameIds []string `json:"sign_game_ids" yaml:"sign_game_ids" table:",ignore"` } func AddAccount(account Account) { diff --git a/job/game.go b/job/game.go index d8703f1..804ad6b 100644 --- a/job/game.go +++ b/job/game.go @@ -92,6 +92,11 @@ func SignGameRole(role *miyoushe.GameRole, account config.Account) (record SignG return } + if len(account.SignGameIds) > 0 && !slices.Contains(account.SignGameIds, gameId) { + slog.Warn("game id %s not in sign game ids", gameId) + return + } + game := miyoushe.AllGamesById[gameId] record.GameId = gameId