- change call freshfodd timeout to 2.5 seconds.
This commit is contained in:
@@ -113,7 +113,7 @@ func init() {
|
||||
}
|
||||
|
||||
func New(baseURL string) *API {
|
||||
return &API{baseURL, &http.Client{Timeout: time.Second * 2}} // 2秒超时,因为JD那边的是3秒,超过3秒无意义
|
||||
return &API{baseURL, &http.Client{Timeout: time.Millisecond * 2500}} // 2秒超时,因为JD那边的是3秒,超过3秒无意义
|
||||
}
|
||||
|
||||
func (f *API) AccessFreshFood(apiStr string, params url.Values) error {
|
||||
|
||||
Reference in New Issue
Block a user