From 8f663b9051f55d15da487cec806a5686dbc457fa Mon Sep 17 00:00:00 2001 From: Gyoungmin Kim Date: Sun, 14 Jul 2024 23:47:11 +0900 Subject: [PATCH] fix: rewrite accidentally deleted lines --- .../src/main/java/kr/mafoo/photo/service/QrService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/photo-service/src/main/java/kr/mafoo/photo/service/QrService.java b/photo-service/src/main/java/kr/mafoo/photo/service/QrService.java index 60ae89d..ba68267 100644 --- a/photo-service/src/main/java/kr/mafoo/photo/service/QrService.java +++ b/photo-service/src/main/java/kr/mafoo/photo/service/QrService.java @@ -63,13 +63,14 @@ private Mono getPhotoismFiles(String qrUrl) { .post() .uri("https://cmsapi.seobuk.kr/v1/etc/seq/resource") .contentType(MediaType.APPLICATION_JSON) - .bodyValue(Map.of("uid", uid, "appUserId", null)) + .bodyValue(Map.of("uid", uid)) .retrieve() .bodyToMono(LinkedHashMap.class) .flatMap(responseBody -> { LinkedHashMap content = (LinkedHashMap) responseBody.get("content"); LinkedHashMap fileInfo = (LinkedHashMap) content.get("fileInfo"); - String imageUrl = (String) fileInfo.get("picFile.path"); + LinkedHashMap picFile = (LinkedHashMap) fileInfo.get("picFile"); + String imageUrl = (String) picFile.get("path"); return getFileAsByte(imageUrl); });