Skip to content

Commit

Permalink
fix: request content in question (number duplication)
Browse files Browse the repository at this point in the history
질문 보낼때 1.1. 이런식으로 번호 중복해서 전송하여 답변도 이런식으로 오는 문제 해결
  • Loading branch information
Relaxed-Mind committed Dec 10, 2023
1 parent c85b448 commit 9597978
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public Map<String, Object> generateSecondQuestions(Long bookDiaryId) {
StringBuilder answer = new StringBuilder();
for(int i=0; i<questions.size(); i++){
Question questionAnswer = questions.get(i);
question.append(i+1).append(".").append(questionAnswer.getQuestion()).append("\n");
question.append(questionAnswer.getQuestion()).append("\n");
answer.append("답변").append(i + 1).append(": ").append(questionAnswer.getAnswer()).append("\n");
}

Expand All @@ -91,6 +91,7 @@ public Map<String, Object> generateSecondQuestions(Long bookDiaryId) {
json.put("scrapMemo", scrapMemo.toString());
json.put("question", question.toString());
json.put("answer", answer.toString());

FeignQuestionDto secondQuestion = secondQuestionClient.getSecondQuestion(json);
JSONObject body = secondQuestion.getBody();

Expand Down

0 comments on commit 9597978

Please sign in to comment.