This commit is contained in:
邹宗楠
2024-04-01 14:26:29 +08:00
parent fba05d1aef
commit 7fbe9a31be
3 changed files with 4 additions and 4 deletions

View File

@@ -251,8 +251,8 @@ func (a *API) RetailList(poiCode string, offset, limit int) (foodList []*AppFood
func (a *API) RetailListAll(poiCode string, offset int) (foodList []*AppFood, err error) {
data := make([]*AppFood, 0, 0)
offset = offset * 1
batchList, err2 := a.RetailList(poiCode, offset, 1) // GeneralMaxLimit
offset = offset * GeneralMaxLimit
batchList, err2 := a.RetailList(poiCode, offset, GeneralMaxLimit) // GeneralMaxLimit
if err = err2; err == nil {
data = append(data, batchList...)
}