diff --git a/src/main/java/shop/hooking/hooking/config/OAuth2SuccessHandler.java b/src/main/java/shop/hooking/hooking/config/OAuth2SuccessHandler.java index 40fd448..0925d3a 100644 --- a/src/main/java/shop/hooking/hooking/config/OAuth2SuccessHandler.java +++ b/src/main/java/shop/hooking/hooking/config/OAuth2SuccessHandler.java @@ -46,11 +46,11 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo log.info("OAuth2User = {}", oAuth2User); String targetUrl; log.info("토큰 발행 시작"); - +// "https://hooking-dev.netlify.app/oath-processor/" String token = jwtTokenProvider.createJwtAccessToken(oAuth2User.getAttribute("id").toString(), role); //토큰발행 log.info("{}", token); //배포url, 로컬url -> 커스텀파라미터 - targetUrl = UriComponentsBuilder.fromUriString("https://hooking-dev.netlify.app/oath-processor/") + targetUrl = UriComponentsBuilder.fromUriString("http://localhost:3000/oath-processor") .queryParam("token", token) .queryParam("firstLogin", firstLogin) .build().toUriString(); diff --git a/src/main/java/shop/hooking/hooking/controller/CopyController.java b/src/main/java/shop/hooking/hooking/controller/CopyController.java index 3739eaa..f93938f 100644 --- a/src/main/java/shop/hooking/hooking/controller/CopyController.java +++ b/src/main/java/shop/hooking/hooking/controller/CopyController.java @@ -24,9 +24,7 @@ import javax.servlet.http.HttpServletRequest; import java.io.IOException; import java.time.LocalDateTime; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; +import java.util.*; @RestController @RequiredArgsConstructor @@ -59,10 +57,11 @@ public HttpRes> copyList() { return new HttpRes<>(tempCopyRes); + } private List getLimitedCopyRes(List copyResList, int limit){ -// Collections.shuffle(copyResList); + Collections.shuffle(copyResList); int endIndex = Math.min(limit, copyResList.size()); return copyResList.subList(0,endIndex); }