Update: Js 4 Log.html 95% --next move the loglevel to settingserver

This commit is contained in:
XOF
2025-11-27 00:51:04 +08:00
parent c86e7a7ba4
commit 166437c0ac
26 changed files with 20500 additions and 2435 deletions

View File

@@ -195,7 +195,10 @@ func (h *ProxyHandler) serveTransparentProxy(c *gin.Context, requestBody []byte,
finalRecorder, finalProxyErr, isSuccess = recorder, attemptErr, attemptSuccess
// ✅ 修正 isSuccess
if finalProxyErr != nil || (finalRecorder != nil && finalRecorder.Code >= 400) {
if attemptSuccess && (finalRecorder == nil || finalRecorder.Code < 400) {
isSuccess = true
finalProxyErr = nil // ✅ 清除错误
} else {
isSuccess = false
}
lastUsedResources = resources