This commit is contained in:
邹宗楠
2024-03-29 16:18:59 +08:00
parent 9bca4e8da3
commit fba05d1aef
6 changed files with 62 additions and 13 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 * GeneralMaxLimit
batchList, err2 := a.RetailList(poiCode, offset, GeneralMaxLimit) // GeneralMaxLimit
offset = offset * 1
batchList, err2 := a.RetailList(poiCode, offset, 1) // GeneralMaxLimit
if err = err2; err == nil {
data = append(data, batchList...)
}