|
@@ -42,7 +42,7 @@ public class KuaishouSupplyChainServiceImpl extends ServiceImpl<KuaishouSupplyCh
|
|
@Transactional
|
|
@Transactional
|
|
@Override
|
|
@Override
|
|
public void getOrderList(String cookie, Integer offset, Long orderCreateTimeStart, Long orderCreateTimeEnd, Map<Long, Long> itemMap) throws Exception {
|
|
public void getOrderList(String cookie, Integer offset, Long orderCreateTimeStart, Long orderCreateTimeEnd, Map<Long, Long> itemMap) throws Exception {
|
|
- Thread.sleep(500L);
|
|
|
|
|
|
+ Thread.sleep(250);
|
|
Map<String, Object> params = new HashMap<>();
|
|
Map<String, Object> params = new HashMap<>();
|
|
if (!Check.isNull(orderCreateTimeStart)) {
|
|
if (!Check.isNull(orderCreateTimeStart)) {
|
|
params.put("orderCreateTimeStart", orderCreateTimeStart);
|
|
params.put("orderCreateTimeStart", orderCreateTimeStart);
|
|
@@ -52,7 +52,7 @@ public class KuaishouSupplyChainServiceImpl extends ServiceImpl<KuaishouSupplyCh
|
|
}
|
|
}
|
|
params.put("fundType", 1);
|
|
params.put("fundType", 1);
|
|
params.put("timeType", 1);
|
|
params.put("timeType", 1);
|
|
- params.put("limit", 100);
|
|
|
|
|
|
+ params.put("limit", 200);
|
|
params.put("offset", offset);
|
|
params.put("offset", offset);
|
|
|
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
Map<String, String> headers = new HashMap<>();
|
|
@@ -122,8 +122,8 @@ public class KuaishouSupplyChainServiceImpl extends ServiceImpl<KuaishouSupplyCh
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
|
|
- if (list.size() >= 100) {
|
|
|
|
- getOrderList(cookie, offset + 100, orderCreateTimeStart, orderCreateTimeEnd, itemMap);
|
|
|
|
|
|
+ if (list.size() >= 200) {
|
|
|
|
+ getOrderList(cookie, offset + 200, orderCreateTimeStart, orderCreateTimeEnd, itemMap);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|