diff --git a/platformapi/platformapi.go b/platformapi/platformapi.go index b8d5b4dd..eff41e00 100644 --- a/platformapi/platformapi.go +++ b/platformapi/platformapi.go @@ -120,8 +120,8 @@ func AccessPlatformAPIWithRetry(client *http.Client, handleRequest func() *http. } defer response.Body.Close() if response.StatusCode != http.StatusOK { - // todo, hardcode,暂时在这里处理饿百的访问异常 - if response.StatusCode == http.StatusBadRequest && request.URL.Hostname() == "api-be.ele.me" { + // todo, hardcode,各平台都出现过偶发的返回非200的错误,饿百最多,美团外卖也出过,奇怪 + if true /*response.StatusCode == http.StatusBadRequest && request.URL.Hostname() == "api-be.ele.me"*/ { recoverableErrorRetryCount++ if recoverableErrorRetryCount <= config.MaxRecoverableRetryCount { continue