1
This commit is contained in:
@@ -26,7 +26,7 @@ func init() {
|
|||||||
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||||
|
|
||||||
//商超
|
//商超
|
||||||
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_n5zAb432R4VRR6GB1CNCuA") //token_n4TwqCntWWuvQwAawzxC0w
|
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_tA8jruzFR0yxDF4p1qVN7A") //token_n4TwqCntWWuvQwAawzxC0w
|
||||||
cookieStr := `
|
cookieStr := `
|
||||||
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
||||||
`
|
`
|
||||||
|
|||||||
@@ -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) {
|
func (a *API) RetailListAll(poiCode string, offset int) (foodList []*AppFood, err error) {
|
||||||
data := make([]*AppFood, 0, 0)
|
data := make([]*AppFood, 0, 0)
|
||||||
offset = offset * 1
|
offset = offset * GeneralMaxLimit
|
||||||
batchList, err2 := a.RetailList(poiCode, offset, 1) // GeneralMaxLimit
|
batchList, err2 := a.RetailList(poiCode, offset, GeneralMaxLimit) // GeneralMaxLimit
|
||||||
if err = err2; err == nil {
|
if err = err2; err == nil {
|
||||||
data = append(data, batchList...)
|
data = append(data, batchList...)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ func TestBatchSetPrice(t *testing.T) {
|
|||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
func TestRetailDelete(t *testing.T) {
|
func TestRetailDelete(t *testing.T) {
|
||||||
poiCode := "20802261"
|
poiCode := "17211186"
|
||||||
|
|
||||||
i := 0
|
i := 0
|
||||||
for {
|
for {
|
||||||
|
|||||||
Reference in New Issue
Block a user