京东设置门店状态cookie测试
This commit is contained in:
@@ -25,7 +25,6 @@ func (a *API) AccessStorePage(fullURL string, bizParams map[string]interface{},
|
|||||||
request, _ = http.NewRequest(http.MethodGet, utils.GenerateGetURL(fullURL, "", bizParams), nil)
|
request, _ = http.NewRequest(http.MethodGet, utils.GenerateGetURL(fullURL, "", bizParams), nil)
|
||||||
}
|
}
|
||||||
a.FillRequestCookies(request)
|
a.FillRequestCookies(request)
|
||||||
fmt.Println("test1", utils.Format4Output(request.Cookies(), false))
|
|
||||||
return request
|
return request
|
||||||
},
|
},
|
||||||
a.config,
|
a.config,
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ func TestCreateShopCategory(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestUpdateStoreStatus(t *testing.T) {
|
func TestUpdateStoreStatus(t *testing.T) {
|
||||||
err := api.UpdateStoreStatus(24332466, 6)
|
err := api.UpdateStoreStatus(24332466, 1)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user