Skip to content

Commit 3de9492

Browse files
authored
[Fix] 타이머 정책 변경사항 반영
[CI/CD] dev 브랜치 최신화 반영하여 배포
2 parents e9ae47a + 409d1d8 commit 3de9492

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/main/java/com/cmc/mercury/domain/timer/service/TimerService.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ public class TimerService {
2828
private final HabitHistoryRepository habitHistoryRepository;
2929
private final MyPageService myPageService;
3030

31-
private static final int MIN_EXP_MINUTES = 5;
32-
private static final int MAX_EXP_MINUTES = 25;
33-
private static final int DAILY_EXP_LIMIT = 120;
31+
private static final int MAX_EXP_SECONDS = 1800;
32+
private static final int DAILY_EXP_LIMIT = 180;
3433

3534

3635
@Transactional
@@ -80,11 +79,10 @@ public TimerListResponse getTimerList(User user) {
8079

8180
// 타이머 기록 시간에 따라 경험치 계산
8281
private int calculateExp(int seconds) {
83-
int minutes = seconds / 60;
82+
int exp = seconds / 10;
8483

85-
if (minutes < MIN_EXP_MINUTES) return 0;
86-
if (minutes > MAX_EXP_MINUTES) return 25;
87-
return minutes;
84+
if (exp > MAX_EXP_SECONDS) return DAILY_EXP_LIMIT;
85+
return exp;
8886
}
8987

9088
// 오늘 획득한 총 경험치 계산

0 commit comments

Comments
 (0)