|
@@ -40,7 +40,7 @@ public class KuaishouSupplyChainServiceImpl extends ServiceImpl<KuaishouSupplyCh
|
|
|
|
|
|
@Override
|
|
|
public void getOrderList(String cookie, Integer offset, Long orderCreateTimeStart, Long orderCreateTimeEnd, Map<Long, Long> itemMap) throws Exception {
|
|
|
- Thread.sleep(5000L);
|
|
|
+ Thread.sleep(1000L);
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
if (!Check.isNull(orderCreateTimeStart)) {
|
|
|
params.put("orderCreateTimeStart", orderCreateTimeStart);
|
|
@@ -49,7 +49,7 @@ public class KuaishouSupplyChainServiceImpl extends ServiceImpl<KuaishouSupplyCh
|
|
|
params.put("orderCreateTimeEnd", orderCreateTimeEnd);
|
|
|
}
|
|
|
params.put("fundType", 1);
|
|
|
- params.put("limit", 5000);
|
|
|
+ params.put("limit", 200);
|
|
|
params.put("offset", offset);
|
|
|
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
@@ -114,8 +114,8 @@ public class KuaishouSupplyChainServiceImpl extends ServiceImpl<KuaishouSupplyCh
|
|
|
supplyChains.add(supplyChain);
|
|
|
}
|
|
|
supplyChainMapper.replace(supplyChains);
|
|
|
- if (list.size() >= 5000) {
|
|
|
- getOrderList(cookie, offset + 5000, orderCreateTimeStart, orderCreateTimeEnd, itemMap);
|
|
|
+ if (list.size() >= 200) {
|
|
|
+ getOrderList(cookie, offset + 200, orderCreateTimeStart, orderCreateTimeEnd, itemMap);
|
|
|
}
|
|
|
|
|
|
}
|