From 9bd2a88ca92bea5227d2244e60981ec35457586d Mon Sep 17 00:00:00 2001 From: StoneCAU Date: Fri, 21 Feb 2025 04:55:25 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=EC=9E=A5=EC=86=8C=20=EA=B2=80?= =?UTF-8?q?=EC=83=89=20=EC=8B=9C=20=EC=82=AC=EC=A7=84=EC=9D=B4=20=EC=97=86?= =?UTF-8?q?=EC=9C=BC=EB=A9=B4=20null=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/mapping/placeCourse/service/PlaceCourseService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/umc/catchy/domain/mapping/placeCourse/service/PlaceCourseService.java b/src/main/java/umc/catchy/domain/mapping/placeCourse/service/PlaceCourseService.java index 8b67546b..dd757e97 100644 --- a/src/main/java/umc/catchy/domain/mapping/placeCourse/service/PlaceCourseService.java +++ b/src/main/java/umc/catchy/domain/mapping/placeCourse/service/PlaceCourseService.java @@ -366,6 +366,8 @@ private String parsePlaceImageFromJson(String response) throws Exception { } } + if (photoReference.isBlank()) return null; + // photo_reference로 photo_url 받아오기 String query = String.format( "photo?maxwidth=400&photoreference=%s&key=GOOGLE_API_KEY", From c3e615f12156ab9a90955f87d396d47a2467143a Mon Sep 17 00:00:00 2001 From: StoneCAU Date: Fri, 21 Feb 2025 05:00:13 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20isVisited=20=ED=95=84=EB=93=9C?= =?UTF-8?q?=EB=AA=85=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapping/placeCourse/dto/response/PlaceInfoDetail.java | 2 +- .../java/umc/catchy/domain/place/converter/PlaceConverter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/umc/catchy/domain/mapping/placeCourse/dto/response/PlaceInfoDetail.java b/src/main/java/umc/catchy/domain/mapping/placeCourse/dto/response/PlaceInfoDetail.java index 973d7898..2863b9a7 100644 --- a/src/main/java/umc/catchy/domain/mapping/placeCourse/dto/response/PlaceInfoDetail.java +++ b/src/main/java/umc/catchy/domain/mapping/placeCourse/dto/response/PlaceInfoDetail.java @@ -20,6 +20,6 @@ public class PlaceInfoDetail { private Long reviewCount; private Double placeLatitude; private Double placeLongitude; - private boolean visited; + private boolean isVisited; private boolean liked; } diff --git a/src/main/java/umc/catchy/domain/place/converter/PlaceConverter.java b/src/main/java/umc/catchy/domain/place/converter/PlaceConverter.java index cfbe92b2..dd5237ba 100644 --- a/src/main/java/umc/catchy/domain/place/converter/PlaceConverter.java +++ b/src/main/java/umc/catchy/domain/place/converter/PlaceConverter.java @@ -78,7 +78,7 @@ public static PlaceInfoDetail toPlaceInfoDetail (Place place, Long reviewCount, .reviewCount(reviewCount) .placeLatitude(place.getLatitude()) .placeLongitude(place.getLongitude()) - .visited(isVisited) + .isVisited(isVisited) .liked(isLiked) .build(); }