Skip to content

Commit

Permalink
Merge pull request #223 from Link-MIND/feature/#222
Browse files Browse the repository at this point in the history
[#222] fix: 카톑 프사가 μ—†μœΌλ©΄ νšŒμ›κ°€μž…μ•ˆλ˜λŠ” 치λͺ…적 이슈..
  • Loading branch information
sss4920 committed Feb 5, 2024
2 parents 8ad6c09 + 779042e commit f26c042
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ public LoginResult getKaKaoId(String accessToken) {
ResponseEntity<Object> responseData = requestKakaoServer(accessToken, Strategy.LOGIN);
ObjectMapper objectMapper = new ObjectMapper();
HashMap profileResponse = (HashMap)objectMapper.convertValue( responseData.getBody(),Map.class).get("properties");
return LoginResult.of(objectMapper.convertValue(responseData.getBody(), Map.class).get("id").toString(), profileResponse==null?null:profileResponse.get("profile_image").toString(),
profileResponse==null?null:profileResponse.get("nickname").toString()); //ν”„λ‘œν•„ 이미지 ν—ˆμš© xμ‹œ null둜 λ„˜κΈ°κΈ°.
return LoginResult.of(objectMapper.convertValue(responseData.getBody(), Map.class).get("id").toString(),
profileResponse==null||profileResponse.get("profile_image")==null?null:profileResponse.get("profile_image").toString(),
profileResponse==null||profileResponse.get("nickname")==null?null:profileResponse.get("nickname").toString()); //ν”„λ‘œν•„ 이미지 ν—ˆμš© xμ‹œ null둜 λ„˜κΈ°κΈ°.
}
// μΈκ°€μ½”λ“œ λ‚˜μ€‘μ— μ„œλ²„μ—μ„œ ν•œλ²ˆμ— 처리 ν•˜λŠ” λ°©μ‹μœΌλ‘œ λ³€κ²½. ux 이슈

Expand Down

0 comments on commit f26c042

Please sign in to comment.