Bläddra i källkod

네이버 최저가 url 수정

eskim 5 år sedan
förälder
incheckning
bd517e47ba

+ 2 - 1
style24.core/src/main/java/com/style24/core/biz/thirdparty/NaverLowestPriceApi.java

@@ -68,7 +68,7 @@ public class NaverLowestPriceApi {
 		headers.add("X-Naver-Client-Id", clientId);
 		headers.add("X-Naver-Client-Secret", clientSecret);
 
-		String requestUrl = apiUrl + "?query=text=" + URLEncoder.encode(goodsCd, "UTF-8") + "&display=1&sort=asc";
+		String requestUrl = apiUrl + "?query=" + URLEncoder.encode(goodsCd, "UTF-8") + "&display=1&sort=asc";
 		log.info("requestUrl: {}", requestUrl);
 		URI url = URI.create(requestUrl);
 
@@ -104,6 +104,7 @@ public class NaverLowestPriceApi {
 		Collection<NaverLowestPrice> lpriceList = new ArrayList<>();
 
 		for (String goodsCd : goodsCdList) {
+			log.info("[getLowestPriceList] goodsCd = {}", goodsCd);
 			NaverLowestPrice lprice = this.getLowestPrice(goodsCd);
 			if (lprice != null) {
 				lpriceList.add(lprice);