mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-29 03:30:24 +08:00
优化代码
This commit is contained in:
@@ -271,8 +271,9 @@ func (this *HTTPRequest) doOriginRequest(failedOriginIds []int64, failedLnNodeId
|
||||
// 开始请求
|
||||
resp, requestErr = client.Do(this.RawReq)
|
||||
} else if origin.OSS != nil { // OSS源站
|
||||
resp, requestErr = this.doOSSOrigin(origin)
|
||||
if requestErr == nil && resp == nil {
|
||||
var goNext bool
|
||||
resp, goNext, requestErr = this.doOSSOrigin(origin)
|
||||
if (requestErr == nil && resp == nil) || !goNext {
|
||||
return
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user