diff --git a/src/main/java/org/swmaestro/repl/gifthub/vouchers/service/VoucherSaveService.java b/src/main/java/org/swmaestro/repl/gifthub/vouchers/service/VoucherSaveService.java index 991b11a2..f93099b7 100644 --- a/src/main/java/org/swmaestro/repl/gifthub/vouchers/service/VoucherSaveService.java +++ b/src/main/java/org/swmaestro/repl/gifthub/vouchers/service/VoucherSaveService.java @@ -90,8 +90,10 @@ public Mono handleGptResponse(OCRDto ocrDto, String usern System.out.println("GPT response"); System.out.println(voucherSaveRequestDto.getBrandName()); System.out.println(voucherSaveRequestDto.getProductName()); - - if (voucherSaveRequestDto.getBrandName() == "" || voucherSaveRequestDto.getProductName() == "") { + System.out.println(voucherSaveRequestDto.getBarcode()); + System.out.println(voucherSaveRequestDto.getExpiresAt()); + if (voucherSaveRequestDto.getBrandName() == "" || voucherSaveRequestDto.getProductName() == "" + || voucherSaveRequestDto.getBarcode() == "" || voucherSaveRequestDto.getExpiresAt() == "") { throw new GptResponseException("GPT 응답이 올바르지 않습니다.", StatusEnum.NOT_FOUND); } return Mono.just(voucherSaveRequestDto);