瀏覽代碼

네이버 최저가 url 수정

eskim 5 年之前
父節點
當前提交
bd517e47ba
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      style24.core/src/main/java/com/style24/core/biz/thirdparty/NaverLowestPriceApi.java

+ 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);