diff --git a/src/main/java/org/alis/blackchain/service/MexcExchangeAdapter.java b/src/main/java/org/alis/blackchain/service/MexcExchangeAdapter.java index 0940bbe..1c575b2 100644 --- a/src/main/java/org/alis/blackchain/service/MexcExchangeAdapter.java +++ b/src/main/java/org/alis/blackchain/service/MexcExchangeAdapter.java @@ -129,7 +129,7 @@ public class MexcExchangeAdapter implements Exchange, InitializingBean { } catch (Exception e) { log.error("任务异常无相关算法", e); // 中断系统 - System.exit(0); + throw new UnsupportedOperationException("中断启动"); } } diff --git a/src/main/java/org/alis/blackchain/service/OkxExchangeAdapter.java b/src/main/java/org/alis/blackchain/service/OkxExchangeAdapter.java index 44a2f79..7aba02e 100644 --- a/src/main/java/org/alis/blackchain/service/OkxExchangeAdapter.java +++ b/src/main/java/org/alis/blackchain/service/OkxExchangeAdapter.java @@ -199,7 +199,7 @@ public class OkxExchangeAdapter implements Exchange, InitializingBean { } catch (Exception e) { log.error("任务异常无相关算法", e); // 中断系统 - System.exit(0); + throw new UnsupportedOperationException("中断启动"); } } } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 510bb1b..6bf0cf2 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -3,7 +3,7 @@ server: # 配置api-token okx: - secert: B0BD202C3C87A400AC68E59DB7C7B8F0 + secret: B0BD202C3C87A400AC68E59DB7C7B8F0 passphrase: PENG852zi@. access-key: 36099e87-5cfc-4d26-8de4-1e0162709c61 domain: https://www.okx.com @@ -11,7 +11,7 @@ mexc: domain: https://api.mexc.com passphrase: access-key: - secert: + secret: proxy: host: 127.0.0.1 port: 6789