Skip to content

Commit

Permalink
Merge pull request #33 from YAPP-Github/feature/#32
Browse files Browse the repository at this point in the history
fix: 인생네컷 QR 사진 저장 변경 로직 적용
  • Loading branch information
gmkim20713 authored Jul 13, 2024
2 parents 53c770b + 2526a8e commit c7dfe01
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private Mono<byte[]> getLifeFourCutsFiles(String qrUrl) {

return getRedirectUri(qrUrl)
.flatMap(redirectUri -> {
String imageUrl = redirectUri.replace("index.html", "image.jpg");
String imageUrl = extractValueFromUrl(redirectUri, "path=")[1].replace("index.html", "image.jpg");

// TODO : 추후 비디오 URL 추가 예정
// String videoUrl = redirectUri.toString().replace("index.html", "video.mp4");
Expand Down Expand Up @@ -84,8 +84,6 @@ private Mono<byte[]> getHaruFilmFiles(String qrUrl) {
String baseUrl = urlValueList[0] + "/base_api?command=albumdn&albumCode=";
String imageUrl = baseUrl + albumCode + "&type=photo&file_name=output.jpg&max=10&limit=+24 hours";

log.info("이미지 url : {}", imageUrl);

// TODO : 추후 비디오 URL 추가 예정
// String videoUrl = baseUrl + albumCode + "&type=video&max=10&limit=+24 hours";

Expand Down

0 comments on commit c7dfe01

Please sign in to comment.