商品限制修改

20230922-ljl-fixBug
cxxxxxxx详 1 year ago
parent 0906358af6
commit cd041479d4

@ -81,7 +81,7 @@ public class GetProductInfoByProductId extends SPIBaseService implements Extensi
getAuthCode(); getAuthCode();
GetProductInfoRequestDTO fields = req.getData(); GetProductInfoRequestDTO fields = req.getData();
List<String> productIds = fields.getProductIds(); List<String> productIds = fields.getProductIds();
if (productIds.size() > 15) { if (productIds.size() > 10) {
return R.ok(Ret.fail("最多支持20个商品")); return R.ok(Ret.fail("最多支持20个商品"));
} }
List<Object> productInfo = new ArrayList<>(); List<Object> productInfo = new ArrayList<>();

@ -81,7 +81,7 @@ public class GetProductInfoService extends SPIBaseService implements ExtensionSe
GetProductInfoRequestDTO fields = req.getData(); GetProductInfoRequestDTO fields = req.getData();
// List<String> sourceItemUrls = new ArrayList<>(); // List<String> sourceItemUrls = new ArrayList<>();
List<String> sourceItemUrls = fields.getSourceItemUrls(); List<String> sourceItemUrls = fields.getSourceItemUrls();
if (sourceItemUrls.size() > 15) { if (sourceItemUrls.size() > 10) {
return R.ok(Ret.fail("最多支持20个商品")); return R.ok(Ret.fail("最多支持20个商品"));
} }
// 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");

Loading…
Cancel
Save