Browse Source

я в ахуе 2

master
gsd 2 years ago
parent
commit
f132437578
  1. 2
      src/main/java/app/services/ReportService.java
  2. 2
      src/main/java/app/services/steam/SteamWebApi.java

2
src/main/java/app/services/ReportService.java

@ -23,7 +23,7 @@ public class ReportService {
String webhook_url; String webhook_url;
@Value("${backend.report.kd}") @Value("${backend.report.kd}")
long kd; long kd;
HashMap<Long, Long> userKD; HashMap<String, Long> userKD;
Stats stats; Stats stats;
StatsService statsService; StatsService statsService;
String tf2_icon = "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/440/e3f595a92552da3d664ad00277fad2107345f743.jpg"; String tf2_icon = "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/440/e3f595a92552da3d664ad00277fad2107345f743.jpg";

2
src/main/java/app/services/steam/SteamWebApi.java

@ -22,7 +22,7 @@ public class SteamWebApi {
restTemplate = new RestTemplate(); restTemplate = new RestTemplate();
} }
public SteamData getSteamData(long steam64){ public SteamData getSteamData(String steam64){
String url = String.format("https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=%s&steamids=%s", webapi_key, steam64); String url = String.format("https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=%s&steamids=%s", webapi_key, steam64);
try { try {
ResponseEntity<String> response = restTemplate.getForEntity(url, String.class); ResponseEntity<String> response = restTemplate.getForEntity(url, String.class);

Loading…
Cancel
Save