diff --git a/platformapi/jdshopapi/store_page.go b/platformapi/jdshopapi/store_page.go index c767c085..efb7ed5a 100644 --- a/platformapi/jdshopapi/store_page.go +++ b/platformapi/jdshopapi/store_page.go @@ -24,6 +24,7 @@ func (a *API) AccessStorePage(fullURL string, bizParams map[string]interface{}, } else { request, _ = http.NewRequest(http.MethodGet, utils.GenerateGetURL(fullURL, "", bizParams), nil) request.Header.Set("referer", "https://stores.shop.jd.com/stores/storeinfolistview") + request.Header.Set("user-agent", "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36") } a.FillRequestCookies(request) fmt.Println("tes11", utils.Format4Output(request.Context(), false))