diff --git a/src/main/java/app/controllers/other/ExternalVIPController.java b/src/main/java/app/controllers/other/ExternalVIPController.java index b77f6ec..dee4097 100644 --- a/src/main/java/app/controllers/other/ExternalVIPController.java +++ b/src/main/java/app/controllers/other/ExternalVIPController.java @@ -42,7 +42,7 @@ public class ExternalVIPController { prices.add(new VipPrice("1 Неделя", 100, "40 рефов", "site_content/images/vip/VIP_7_DAYS.jpg", "week", true, true, true, 10)); prices.add(new VipPrice("1 День", 35, "10 рефов", "site_content/images/vip/VIP_1_DAY.jpg", "day", true, true, true, 10)); prices.add(new VipPrice("1 День", 0, "бесплатно", "site_content/images/vip/freevip.jpg", "free", true, true, true, 10)); - prices.add(new VipPrice("Промокод", 0, "бесплатно", "site_content/images/vip/freevip.jpg", "promocode", true, true, true, 10)); + prices.add(new VipPrice("Промокод", 0, "бесплатно", "site_content/images/vip/promocode.jpg", "promocode", true, true, true, 10)); } @PostMapping diff --git a/src/main/java/app/controllers/other/PromoCodeController.java b/src/main/java/app/controllers/other/PromoCodeController.java index 9a43c7d..f6b17a1 100644 --- a/src/main/java/app/controllers/other/PromoCodeController.java +++ b/src/main/java/app/controllers/other/PromoCodeController.java @@ -38,7 +38,7 @@ public class PromoCodeController { @GetMapping @CheckWebAccess(auth_method = AuthMethod.STEAM64) @CheckPermitionFlag(flag = "z") - public ResponseEntity> getCodes() { + public ResponseEntity> getCodes(HttpServletRequest request) { return new ResponseEntity<>(promoCodeService.getActualPromocodes().stream().collect(Collectors.toMap(PromoCode::getCode, PromoCode::getAction)), HttpStatus.OK); }