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