Administrator
2025-12-12 5e1efd52bbbc7e3b65c3ee936a859b5314065c88
feat(okxWs): 添加账户详情日志输出功能

- 引入 JSONUtil 工具类用于格式化 JSON 字符串
- 在账户详情处理逻辑中增加日志打印
- 使用 log.info 输出每个账户详情的结构化信息
- 保留原有业务逻辑不变,仅增强调试能力
1 files modified
3 ■■■■■ changed files
src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/AccountWs.java 3 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/okxNewPrice/okxWs/AccountWs.java
@@ -1,5 +1,6 @@
package com.xcong.excoin.modules.okxNewPrice.okxWs;
import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xcong.excoin.modules.okxNewPrice.okxWs.enums.CoinEnums;
@@ -7,6 +8,7 @@
import com.xcong.excoin.modules.okxNewPrice.okxpi.MallUtils;
import com.xcong.excoin.modules.okxNewPrice.utils.WsMapBuild;
import com.xcong.excoin.modules.okxNewPrice.utils.WsParamBuild;
import io.micrometer.core.instrument.util.JsonUtils;
import lombok.extern.slf4j.Slf4j;
import org.java_websocket.client.WebSocketClient;
@@ -80,6 +82,7 @@
                    for (int j = 0; j < detailsArray.size(); j++) {
                        JSONObject detail = detailsArray.getJSONObject(j);
                        log.info("账户详情: {}", JSONUtil.formatJsonStr(String.valueOf(detail)));
                        //需要获取的参数
                        String ccyKey = "ccy";
                        String availBalKey = "availBal";