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

@@ -26,7 +26,7 @@ func init() {
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
//商超
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_n5zAb432R4VRR6GB1CNCuA") //token_n4TwqCntWWuvQwAawzxC0w
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_tA8jruzFR0yxDF4p1qVN7A") //token_n4TwqCntWWuvQwAawzxC0w
cookieStr := `
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
`

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...)
}

View File

@@ -231,7 +231,7 @@ func TestBatchSetPrice(t *testing.T) {
fmt.Println(err)
}
func TestRetailDelete(t *testing.T) {
poiCode := "20802261"
poiCode := "17211186"
i := 0
for {