抖音每页爬取50条

This commit is contained in:
liuyuhang 2024-07-08 19:06:29 +08:00
parent a41c2dc0ec
commit f2f1652368
1 changed files with 3 additions and 3 deletions

View File

@ -232,11 +232,11 @@ class Douyin
// Log::error('===_certificateList查询page='.$page.'时间:'.date('Y-m-d H:i:s',$start).'--'.date('Y-m-d H:i:s',$end).'===='); // Log::error('===_certificateList查询page='.$page.'时间:'.date('Y-m-d H:i:s',$start).'--'.date('Y-m-d H:i:s',$end).'====');
$this->_getRetriesLock(); $this->_getRetriesLock();
$list = $this->_curl("/life/trip/fulfilment/v1/query/certificate_list?end_time={$end}&page_index={$page}&page_size=20&start_time={$start}&root_life_account_id=" . $this->_id(), $params, 'POST'); $list = $this->_curl("/life/trip/fulfilment/v1/query/certificate_list?end_time={$end}&page_index={$page}&page_size=50&start_time={$start}&root_life_account_id=" . $this->_id(), $params, 'POST');
if (empty($list) || $list->status_code != 0) { if (empty($list) || $list->status_code != 0) {
$this->_getRetriesLock(); $this->_getRetriesLock();
$list = $this->_curl("/life/trip/fulfilment/v1/query/certificate_list?end_time={$end}&page_index={$page}&page_size=20&start_time={$start}&root_life_account_id=" . $this->_id(), $params, 'POST'); $list = $this->_curl("/life/trip/fulfilment/v1/query/certificate_list?end_time={$end}&page_index={$page}&page_size=50&start_time={$start}&root_life_account_id=" . $this->_id(), $params, 'POST');
if (empty($list) || $list->status_code != 0) { if (empty($list) || $list->status_code != 0) {
Log::error('===查询时间:' . $start . '--' . $end . '====certificate_list: ' . json_encode($list)); Log::error('===查询时间:' . $start . '--' . $end . '====certificate_list: ' . json_encode($list));
throw new Exception("抖音拉单失败,Err:" . json_encode($list)); throw new Exception("抖音拉单失败,Err:" . json_encode($list));
@ -405,7 +405,7 @@ class Douyin
foreach (array_keys(Orders::DouyinReservationStatus) as $status) { foreach (array_keys(Orders::DouyinReservationStatus) as $status) {
$params = [ $params = [
'page_index' => 1, 'page_index' => 1,
'page_size' => 20, 'page_size' => 50,
'status' => $status, 'status' => $status,
'order_id' => $orderId, 'order_id' => $orderId,
'sku_name' => '', 'sku_name' => '',