- change call freshfodd timeout to 2.5 seconds.

This commit is contained in:
gazebo
2018-08-11 08:31:31 +08:00
parent 27682fe85f
commit 75a0f77c6f

View File

@@ -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 {