From 24a4487d0b7c12c3f587fe95ed58af2473edc645 Mon Sep 17 00:00:00 2001 From: WrBug Date: Mon, 16 Feb 2026 04:33:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(cryptotail):=20=E5=B0=BE=E7=9B=98=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E5=A4=B1=E8=B4=A5=E8=AE=A2=E5=8D=95=E5=8E=9F=E5=9B=A0?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=20HTTP=20=E7=8A=B6=E6=80=81=E7=A0=81?= =?UTF-8?q?=EF=BC=8C=E4=BE=BF=E4=BA=8E=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- .../service/cryptotail/CryptoTailStrategyExecutionService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/kotlin/com/wrbug/polymarketbot/service/cryptotail/CryptoTailStrategyExecutionService.kt b/backend/src/main/kotlin/com/wrbug/polymarketbot/service/cryptotail/CryptoTailStrategyExecutionService.kt index 18c5fdc..a26ec4b 100644 --- a/backend/src/main/kotlin/com/wrbug/polymarketbot/service/cryptotail/CryptoTailStrategyExecutionService.kt +++ b/backend/src/main/kotlin/com/wrbug/polymarketbot/service/cryptotail/CryptoTailStrategyExecutionService.kt @@ -335,7 +335,7 @@ class CryptoTailStrategyExecutionService( failReason = body.errorMsg ?: "unknown" } else { val errorBody = response.errorBody()?.string().orEmpty() - failReason = "HTTP ${response.code()} $errorBody" + failReason = errorBody.ifEmpty { "请求失败" } } } catch (e: Exception) { failReason = e.message ?: e.toString()