fix(cryptotail): 尾盘策略失败订单原因移除 HTTP 状态码,便于移动端显示

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
WrBug
2026-02-16 04:33:27 +08:00
co-authored by Cursor
parent 24bb7bed40
commit 24a4487d0b
@@ -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()