Skip to content

Commit

Permalink
[fix] 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hysong4u committed Feb 10, 2024
1 parent be6c790 commit 6014808
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public KakaoUserInfoResponseDto kakaoCallback(String code, String environment) {
params.add("grant_type", "authorization_code");
params.add("client_id", clientId);
params.add("redirect_uri", redirectUri);
if ("development".equals(environment)) {
if ("production".equals(environment)) {
params.add("redirect_uri", redirectUri);
} else {
params.add("redirect_uri", "http://localhost:5137/api/oauth/kakao/login");
Expand Down Expand Up @@ -180,8 +180,7 @@ public String sendDiscordNotification(String nickname) {
RestTemplate restTemplate = new RestTemplate();
Long totalMembers = memberRepository.count();

String message = "\n" + totalMembers + "번째 멤버가 회원가입했습니다.\n" +
"사용자명: " + nickname;
String message = nickname + "님이 회원가입했습니다! (누적 회원수: " + totalMembers + "명\n)";

HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);
Expand Down

0 comments on commit 6014808

Please sign in to comment.