From ee10b32d23923ada3b3758446b78c45c212db4b0 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Thu, 08 Jan 2026 15:45:45 +0800
Subject: [PATCH] refactor(okxNewPrice): 简化ping消息发送逻辑

---
 src/main/java/com/xcong/excoin/modules/okxNewPrice/OkxNewPriceWebSocketClient.java |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/okxNewPrice/OkxNewPriceWebSocketClient.java b/src/main/java/com/xcong/excoin/modules/okxNewPrice/OkxNewPriceWebSocketClient.java
index 0c855f3..8629dde 100644
--- a/src/main/java/com/xcong/excoin/modules/okxNewPrice/OkxNewPriceWebSocketClient.java
+++ b/src/main/java/com/xcong/excoin/modules/okxNewPrice/OkxNewPriceWebSocketClient.java
@@ -114,7 +114,7 @@
 
     private static final String WS_URL_MONIPAN = "wss://wspap.okx.com:8443/ws/v5/public";
     private static final String WS_URL_SHIPAN = "wss://ws.okx.com:8443/ws/v5/public";
-    private static final boolean isAccountType = true;
+    private static final boolean isAccountType = false;
 
     /**
      * 建立与 OKX WebSocket 服务器的连接。
@@ -434,9 +434,7 @@
     private void sendPing() {
         try {
             if (webSocketClient != null && webSocketClient.isOpen()) {
-                JSONObject ping = new JSONObject();
-                ping.put("op", "ping");
-                webSocketClient.send(ping.toJSONString());
+                webSocketClient.send("ping");
                 log.debug("发送ping请求");
             }
         } catch (Exception e) {

--
Gitblit v1.9.1