Skip to content

Commit

Permalink
Merge pull request #27 from YAPP-Github/feature/#26
Browse files Browse the repository at this point in the history
fix: ํฌํ† ์ด์ฆ˜ QR ์‚ฌ์ง„ ์ €์žฅ ๋กœ์ง ์˜ค๋ฅ˜ ์ˆ˜์ •
  • Loading branch information
gmkim20713 authored Jul 13, 2024
2 parents 748363d + ca56dec commit db2b913
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 db2b913

Please sign in to comment.