This commit is contained in:
邹宗楠
2023-09-22 15:31:24 +08:00
parent 990ea93f60
commit 6e87da9197
2 changed files with 3 additions and 3 deletions

View File

@@ -246,7 +246,7 @@ 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) * 200
offset = offset * 200
batchList, err2 := a.RetailList(poiCode, offset, GeneralMaxLimit)
if err = err2; err == nil {
data = append(data, batchList...)