补充提交

20230922-ljl-fixBug
qiushengjie 1 year ago
parent 67a9c5ed7c
commit 1366f6ed27

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

@ -123,10 +123,6 @@ public class MoveToSecondTaskService extends TaskBaseService {
List<String> productIds = (List<String>) fields.get("productIds");
Long shopId = (Long) fields.get("shopId");
String authCode = (String) fields.get("authCode");
// int limitNum = 10;
// if (productIds.size() > limitNum) {
// return Ret.fail("最多支持" + limitNum + "个商品");
// }
List<Object> productInfo = new ArrayList<>();
List<String> fetchFailIds = new ArrayList<>();

Loading…
Cancel
Save