|
|
|
@ -79,15 +79,7 @@ public class GetProductInfoService extends SPIBaseService implements ExtensionSe
|
|
|
|
|
getAuthCode();
|
|
|
|
|
// ----参数校验----
|
|
|
|
|
GetProductInfoRequestDTO fields = req.getData();
|
|
|
|
|
// List<String> sourceItemUrls = new ArrayList<>();
|
|
|
|
|
List<String> sourceItemUrls = fields.getSourceItemUrls();
|
|
|
|
|
// int limitNum = 10;
|
|
|
|
|
// if (sourceItemUrls.size() > limitNum) {
|
|
|
|
|
// return R.ok(Ret.fail("最多支持 " +limitNum+"个商品"));
|
|
|
|
|
// }
|
|
|
|
|
// sourceItemUrls.add("https://detail.1688.com/offer/682805686164.html?spm=a2638t.b_90254924.bangdan-list.3.3872436cl59VWf&cosite=baidujj_pz&tracelog=p4p&_p_isad=1&clickid=3906df8adbe74c3faba6eefc496fa074&sessionid=3fa85d5fd57096560a3cfa71088c6e4a");
|
|
|
|
|
// sourceItemUrls.add("https://detail.1688.com/offer/682805686164.html?spm=a2638t.b_90254924.bangdan-list.3.3872436cl59VWf&cosite=baidujj_pz&tracelog=p4p&_p_isad=1&clickid=3906df8adbe74c3faba6eefc496fa074&sessionid=3fa85d5fd57096560a3cfa71088c6e4a");
|
|
|
|
|
List<Object> productInfo = new ArrayList<>();
|
|
|
|
|
List<String> fetchFailUrls = new ArrayList<>();
|
|
|
|
|
for (int i = 0; i < sourceItemUrls.size(); i++) {
|
|
|
|
|
String url = sourceItemUrls.get(i);
|
|
|
|
|