|
|
|
@ -9,10 +9,7 @@ import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.sql.ResultSet; |
|
|
|
import java.sql.SQLException; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Collections; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
@Service |
|
|
|
public class DiscordAuthService { |
|
|
|
@ -65,4 +62,12 @@ public class DiscordAuthService { |
|
|
|
} |
|
|
|
this.processing_accounts.get(slot).add(processing_account); |
|
|
|
} |
|
|
|
|
|
|
|
public SteamID fetchRegUUIDFromGameChat(UUID uuid) { |
|
|
|
return jdbcTemplate.query("select account_id from user_messages where message like ? limit 1", |
|
|
|
new Object[]{uuid.toString()}, (rs, n) -> rs.getLong("account_id")) |
|
|
|
.stream() |
|
|
|
.map(SteamIDConverter::getSteamID) |
|
|
|
.findFirst().orElse(null); |
|
|
|
} |
|
|
|
} |
|
|
|
|