Skip to content

Commit

Permalink
fix: rewrite accidentally deleted lines
Browse files Browse the repository at this point in the history
  • Loading branch information
gmkim20713 committed Jul 14, 2024
1 parent 183ce70 commit 8f663b9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@ private Mono<byte[]> 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<String, Object> content = (LinkedHashMap<String, Object>) responseBody.get("content");
LinkedHashMap<String, Object> fileInfo = (LinkedHashMap<String, Object>) content.get("fileInfo");
String imageUrl = (String) fileInfo.get("picFile.path");
LinkedHashMap<String, Object> picFile = (LinkedHashMap<String, Object>) fileInfo.get("picFile");
String imageUrl = (String) picFile.get("path");

return getFileAsByte(imageUrl);
});
Expand Down

0 comments on commit 8f663b9

Please sign in to comment.