diff --git a/src/main/java/com/noplanb/NoPlanBApplication.java b/src/main/java/com/noplanb/NoPlanBApplication.java index d8c3805..40e4b95 100644 --- a/src/main/java/com/noplanb/NoPlanBApplication.java +++ b/src/main/java/com/noplanb/NoPlanBApplication.java @@ -25,7 +25,6 @@ public static void main(String[] args) { } @PostConstruct public void init() { - System.out.println("true = " + true); // timezone 설정 TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul")); } diff --git a/src/main/java/com/noplanb/domain/quest/application/QuestService.java b/src/main/java/com/noplanb/domain/quest/application/QuestService.java index 59ae90e..87a54b7 100644 --- a/src/main/java/com/noplanb/domain/quest/application/QuestService.java +++ b/src/main/java/com/noplanb/domain/quest/application/QuestService.java @@ -60,7 +60,6 @@ public ResponseEntity createQuest(CreateQuestReq createQuestReq, UserPrincipa return createApiResponse((Message.builder().message("퀘스트를 만들었습니다.").build())); } public ResponseEntity retrieveQuest(LocalDate localDate, UserPrincipal userPrincipal) { - System.out.println("userPrincipal = " + userPrincipal.getId()); Character character = characterRepository.findByUserId(userPrincipal.getId()).orElseThrow(CharacterNotFoundException::new); List quests = character.getQuests(); // 특정 날짜에 해당하는 퀘스트 필터링 후 미완료 완료 로 정렬 후 생성순으로 정렬 @@ -114,7 +113,7 @@ public ResponseEntity completeQuest(UserPrincipal userPrincipal, Long id) { String questType = "완료"; // 레벨업 확인 - if (character.getTotalExp()>((characterLevel*(characterLevel+1)/2)*10)){ + if (character.getTotalExp()>=(((characterLevel*(characterLevel+1))/2)*10)){ questType = "레벨업"; // 레벨업 character.updateLevel(); @@ -151,7 +150,6 @@ private List unLockItem(Long level, Character character) { @Transactional public ResponseEntity modifyQuest(UserPrincipal userPrincipal, ModifyQuestReq modifyQuestReq) { Character character = characterRepository.findByUserId(userPrincipal.getId()).orElseThrow(CharacterNotFoundException::new); - System.out.println("character.getCharacterName() = " + character.getCharacterName()); List quests = character.getQuests(); // 퀘스트 가져오기 Quest quest = quests.stream().filter(q -> q.getId().equals(modifyQuestReq.getId()))