fix(delivery): 将第一平台发货出站超时调到 30 秒

常态提交约 11 秒,15 秒上限会在上游偶发变慢时提前断开,可能把仍在处理的订单记成失败。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
yml2213
2026-10-05 19:57:07 +08:00
co-authored by Cursor
parent 4f23ae389d
commit 8c43fb4569
2 changed files with 4 additions and 5 deletions
+1 -4
View File
@@ -41,7 +41,7 @@ func NewDLCProvider(bffBaseURL, channel string, httpClient *http.Client) *DLCPro
channel = "dlc"
}
if httpClient == nil {
httpClient = &http.Client{Timeout: 15 * timeSecond(15)}
httpClient = &http.Client{Timeout: deliveryUpstreamTimeout}
}
return &DLCProvider{
bffBaseURL: bffBaseURL,
@@ -633,6 +633,3 @@ func (p *DLCProvider) signProxy(path, method string, data interface{}, out inter
return lastErr
}
func timeSecond(s int) time.Duration {
return time.Duration(s) * time.Second
}