This commit is contained in:
邹宗楠
2023-11-30 17:46:14 +08:00
parent ba01da875f
commit aa7f9f9d1d
2 changed files with 9 additions and 2 deletions

View File

@@ -548,12 +548,12 @@ func (a *API) OrderListAll(shopID string, baiduShopID int64, startTime, endTime
return nil, err
}
listOrder = append(listOrder, result.List...)
// 这个地方暂停是应为接口请求超频
time.Sleep(1 * time.Second)
if result.Page >= result.Pages {
break
}
page++
// 这个地方暂停是应为接口请求超频
time.Sleep(1 * time.Second)
}
return listOrder, nil
}