diff --git a/common/parsers/networkparser.go b/common/parsers/networkparser.go index a630244..f9d955c 100644 --- a/common/parsers/networkparser.go +++ b/common/parsers/networkparser.go @@ -206,8 +206,9 @@ func (np *NetworkParser) parseTimeouts(timeout, webTimeout int64) (time.Duration finalWebTimeout = time.Duration(webTimeout) * time.Second } - // 验证超时配置合理性 - if finalWebTimeout > finalTimeout { + // 验证超时配置合理性:只有在Web超时显著大于普通超时时才警告 + // Web超时适当大于普通超时是合理的,因为Web请求包含更多步骤 + if finalWebTimeout > finalTimeout*2 { warnings = append(warnings, i18n.GetText("config_web_timeout_warning")) }