From 55b55fbef1b2d8464977986513d29b38ec857b02 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Thu, 13 Aug 2026 15:48:31 +0800
Subject: [PATCH] config(gateApi): 修改Gate配置的生产环境标识
---
src/main/java/com/xcong/excoin/modules/gateApi/GateConfigController.java | 6 +++---
1 files changed, 3 insertions(+), 3 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 bd9d90c..db21b56 100644
--- a/src/main/java/com/xcong/excoin/modules/gateApi/GateConfigController.java
+++ b/src/main/java/com/xcong/excoin/modules/gateApi/GateConfigController.java
@@ -38,7 +38,7 @@
}
GateConfigDTO dto = persistenceService.load(apiKey);
if (dto == null) {
- dto = new GateConfigDTO();
+ return Result.fail("apiKey 错误,未找到该配置");
}
dto.setApiKey(apiKey);
return Result.ok(dto);
@@ -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