From 2fa226b6fc69fe6df2d8e4dc3374829d7d89c87b Mon Sep 17 00:00:00 2001 From: choi-jin-wook Date: Mon, 14 Sep 2026 12:59:14 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=EC=8A=A4=ED=8E=98=EC=85=9C=20?= =?UTF-8?q?=EB=A3=B0=EB=A0=9B=20=EC=B5=9C=EC=86=8C=20=EA=B2=B0=EC=A0=9C=20?= =?UTF-8?q?=EA=B8=88=EC=95=A1=20=EC=A1=B0=EC=A0=95=20=EB=B0=8F=20=EC=95=84?= =?UTF-8?q?=EC=9D=B4=ED=85=9C=20=EC=84=9C=EB=B9=84=EC=8A=A4=20URL=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=20=20=20=20-=20=EC=B5=9C=EC=86=8C=20?= =?UTF-8?q?=EA=B2=B0=EC=A0=9C=20=EA=B8=88=EC=95=A1=EC=9D=84=203,500?= =?UTF-8?q?=EC=9B=90=EC=97=90=EC=84=9C=203,000=EC=9B=90=EC=9C=BC=EB=A1=9C?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD=20=20=20=20=20-=20AWS=20=ED=99=98?= =?UTF-8?q?=EA=B2=BD=EC=97=90=20item-service=20URL=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../item/domain/roulette/service/RouletteServiceImpl.java | 2 +- user-service/src/main/resources/application-aws.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/item-service/src/main/java/com/comatching/item/domain/roulette/service/RouletteServiceImpl.java b/item-service/src/main/java/com/comatching/item/domain/roulette/service/RouletteServiceImpl.java index 58eeb85..a01b737 100644 --- a/item-service/src/main/java/com/comatching/item/domain/roulette/service/RouletteServiceImpl.java +++ b/item-service/src/main/java/com/comatching/item/domain/roulette/service/RouletteServiceImpl.java @@ -32,7 +32,7 @@ @AllArgsConstructor public class RouletteServiceImpl implements RouletteService { - private static final long SPECIAL_ROULETTE_MINIMUM_PAYMENT = 3500L; + private static final long SPECIAL_ROULETTE_MINIMUM_PAYMENT = 3000L; private final RouletteHistoryRepository rouletteHistoryRepository; private final RouletteRewardRepository rouletteRewardRepository; diff --git a/user-service/src/main/resources/application-aws.yml b/user-service/src/main/resources/application-aws.yml index 24dbc37..072023d 100644 --- a/user-service/src/main/resources/application-aws.yml +++ b/user-service/src/main/resources/application-aws.yml @@ -13,6 +13,9 @@ server: client: url: ${CLIENT_URL:https://comatching.site} +item-service: + url: http://item-service:9006 + auth: cookie: secure: ${AUTH_COOKIE_SECURE:true} From 7123b2933c2c3cdc301923102e2a423970e39ed8 Mon Sep 17 00:00:00 2001 From: choi-jin-wook Date: Mon, 14 Sep 2026 13:07:32 +0900 Subject: [PATCH 2/2] =?UTF-8?q?test(item):=20=EC=8A=A4=ED=8E=98=EC=85=9C?= =?UTF-8?q?=20=EB=A3=B0=EB=A0=9B=20=EC=B5=9C=EC=86=8C=20=EA=B2=B0=EC=A0=9C?= =?UTF-8?q?=20=EA=B8=88=EC=95=A1=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=20=20=20=20-=20=EC=B5=9C=EC=86=8C=20=EA=B2=B0?= =?UTF-8?q?=EC=A0=9C=20=EA=B8=B0=EC=A4=80=EC=9D=84=203,500=EC=9B=90?= =?UTF-8?q?=EC=97=90=EC=84=9C=203,000=EC=9B=90=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20=20=20=20=20-=20=EA=B8=B0=EC=A4=80=20?= =?UTF-8?q?=EB=AF=B8=EB=8B=AC=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EA=B2=B0?= =?UTF-8?q?=EC=A0=9C=EC=95=A1=EC=9D=84=202,999=EC=9B=90=EC=9C=BC=EB=A1=9C?= =?UTF-8?q?=20=EC=A1=B0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../item/domain/roulette/service/RouletteServiceImplTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/item-service/src/test/java/com/comatching/item/domain/roulette/service/RouletteServiceImplTest.java b/item-service/src/test/java/com/comatching/item/domain/roulette/service/RouletteServiceImplTest.java index 1318c35..4e1c996 100644 --- a/item-service/src/test/java/com/comatching/item/domain/roulette/service/RouletteServiceImplTest.java +++ b/item-service/src/test/java/com/comatching/item/domain/roulette/service/RouletteServiceImplTest.java @@ -297,7 +297,7 @@ void shouldRejectDuplicatedSpecialRouletteParticipation() { } @Test - @DisplayName("오늘 누적 결제액이 3500원 미만이면 예외가 발생하고 추첨하지 않는다") + @DisplayName("오늘 누적 결제액이 3000원 미만이면 예외가 발생하고 추첨하지 않는다") void shouldRejectSpecialRouletteWhenPaymentIsBelowMinimum() { given(rouletteHistoryRepository .existsByMemberIdAndRouletteTypeAndParticipationDate( @@ -305,7 +305,7 @@ void shouldRejectSpecialRouletteWhenPaymentIsBelowMinimum() { any(LocalDate.class))).willReturn(false); given(orderRepository.sumApprovedPriceByMemberIdAndDecidedAtBetween( eq(MEMBER.memberId()), any(LocalDateTime.class), any(LocalDateTime.class))) - .willReturn(3499L); + .willReturn(2999L); assertThatThrownBy(() -> rouletteService.spinRoulette(MEMBER, RouletteType.SPECIAL)) .isInstanceOf(BusinessException.class)