Skip to content

Commit a7635f7

Browse files
committed
[feat/#72] OCR 인증 수정
1 parent 2001ed4 commit a7635f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/carbonneutral/academy/api/service/ocr/OcrService/OcrServiceImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public PostOcrRes ocrImage(User user, MultipartFile receipt) {
4848
log.info("receiptUrl : {}", receiptUrl);
4949
String result = clovaOCR.OCRParse(receiptUrl);
5050
//결과에 컵 할인 없으면 예외 던지기
51-
if (!result.contains("컵 할인")) {
51+
if (!result.contains("개인컵") || !result.contains("컵 할인")) {
5252
throw new BaseException(NOT_FIND_CUP_DISCOUNT);
5353
}
5454
Location location = locationJpaRepository.findByIdAndState(3, ACTIVE)

0 commit comments

Comments
 (0)