This commit is contained in:
Nite07 2024-11-16 18:05:49 +08:00
parent 356a76f5b4
commit d893f7d23d

View File

@ -46,6 +46,9 @@ func GetSteam250(url string) ([]*model.GameInfo, error) {
var res []*model.GameInfo
count := 0
for _, steamID := range steamIDs {
if count >= 10 {
break
}
info, err := db.GetGameInfoByPlatformID("steam", steamID)
if err == nil {
res = append(res, info)