From db4affbd6cca66acea2386c58970aa3ff7ff8f5c Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Thu, 08 Oct 2026 10:37:25 +0800
Subject: [PATCH] fix(gate-api): 修复网格交易重置策略中的竞态条件问题
---
src/main/java/com/xcong/excoin/modules/gateApi/GateConfigController.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/gateApi/GateConfigController.java b/src/main/java/com/xcong/excoin/modules/gateApi/GateConfigController.java
index 40ab8e0..db21b56 100644
--- a/src/main/java/com/xcong/excoin/modules/gateApi/GateConfigController.java
+++ b/src/main/java/com/xcong/excoin/modules/gateApi/GateConfigController.java
@@ -102,9 +102,9 @@
public Result getStatus() {
GateGridTradeService service = clientManager.getGridTradeService();
if (service == null) {
- return Result.ok("STOPPED");
+ return Result.ok("success", "STOPPED");
}
- return Result.ok(service.isStrategyActive() ? "ACTIVE" : "STOPPED");
+ return Result.ok("success", service.isStrategyActive() ? "ACTIVE" : "STOPPED");
}
/**
--
Gitblit v1.9.1