|
@@ -44,7 +44,7 @@ public class Yoho2ufoProductServiceImpl implements Yoho2ufoProductService { |
|
@@ -44,7 +44,7 @@ public class Yoho2ufoProductServiceImpl implements Yoho2ufoProductService { |
44
|
@Resource
|
44
|
@Resource
|
45
|
ProductSortMapper productSortMapper;
|
45
|
ProductSortMapper productSortMapper;
|
46
|
|
46
|
|
47
|
- @Value("${search.server.address}")
|
47
|
+ @Value("${ip.port.search.server}")
|
48
|
private String searchServerAddress;
|
48
|
private String searchServerAddress;
|
49
|
|
49
|
|
50
|
private static final Logger logger = LoggerFactory.getLogger(Yoho2ufoProductServiceImpl.class);
|
50
|
private static final Logger logger = LoggerFactory.getLogger(Yoho2ufoProductServiceImpl.class);
|
|
@@ -195,7 +195,7 @@ public class Yoho2ufoProductServiceImpl implements Yoho2ufoProductService { |
|
@@ -195,7 +195,7 @@ public class Yoho2ufoProductServiceImpl implements Yoho2ufoProductService { |
195
|
|
195
|
|
196
|
List<YohoProductInfo> productBoList = new ArrayList<>();
|
196
|
List<YohoProductInfo> productBoList = new ArrayList<>();
|
197
|
//调用搜索的接口批量查询产品信息
|
197
|
//调用搜索的接口批量查询产品信息
|
198
|
- String url = searchServerAddress + "productindex/productListBySkn.json?product_skn=" +
|
198
|
+ String url = searchServerAddress + "/yohosearch/productindex/productListBySkn.json?product_skn=" +
|
199
|
org.apache.commons.lang.StringUtils.join(sknList, ",");
|
199
|
org.apache.commons.lang.StringUtils.join(sknList, ",");
|
200
|
JSONObject jsonObject = serviceCaller.get("", url, null, JSONObject.class, null).get(1);
|
200
|
JSONObject jsonObject = serviceCaller.get("", url, null, JSONObject.class, null).get(1);
|
201
|
if(jsonObject != null && jsonObject.getJSONObject("data") != null){
|
201
|
if(jsonObject != null && jsonObject.getJSONObject("data") != null){
|