From 391fd0cf4f04bfdb8032077327a61a7861c994b0 Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Thu, 23 Apr 2026 15:37:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E5=90=8E=E7=8A=B6=E6=80=81=E6=B8=85?= =?UTF-8?q?=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gather/detection/handler/SocketFreqConverterDevService.java | 1 + .../gather/detection/handler/SocketFreqConverterService.java | 1 + .../njcn/gather/detection/util/socket/FormalTestManager.java | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/detection/src/main/java/com/njcn/gather/detection/handler/SocketFreqConverterDevService.java b/detection/src/main/java/com/njcn/gather/detection/handler/SocketFreqConverterDevService.java index a238a52b..38c8a9bb 100644 --- a/detection/src/main/java/com/njcn/gather/detection/handler/SocketFreqConverterDevService.java +++ b/detection/src/main/java/com/njcn/gather/detection/handler/SocketFreqConverterDevService.java @@ -370,6 +370,7 @@ public class SocketFreqConverterDevService { String freqConverterTag = currentUserId + CnSocketUtil.FREQ_CONVERTER_TAG; // 避免过早把 freqConverterTableSuffix 等全局值清掉,造成变频器无法使用全局变量 if (!SocketManager.isChannelActive(freqConverterTag)) { + FormalTestManager.freqConverterStep = null; FormalTestManager.clearFreqConverterRuntimeState(); } } diff --git a/detection/src/main/java/com/njcn/gather/detection/handler/SocketFreqConverterService.java b/detection/src/main/java/com/njcn/gather/detection/handler/SocketFreqConverterService.java index c39c9144..03155e10 100644 --- a/detection/src/main/java/com/njcn/gather/detection/handler/SocketFreqConverterService.java +++ b/detection/src/main/java/com/njcn/gather/detection/handler/SocketFreqConverterService.java @@ -284,6 +284,7 @@ public class SocketFreqConverterService { String devTag = currentUserId + CnSocketUtil.DEV_TAG; // 避免过早把 freqConverterTableSuffix 等全局值清掉,造成设备无法使用全局变量 if (!SocketManager.isChannelActive(devTag)) { + FormalTestManager.freqConverterDevStep = null; FormalTestManager.clearFreqConverterRuntimeState(); } } diff --git a/detection/src/main/java/com/njcn/gather/detection/util/socket/FormalTestManager.java b/detection/src/main/java/com/njcn/gather/detection/util/socket/FormalTestManager.java index e773b619..bc51a626 100644 --- a/detection/src/main/java/com/njcn/gather/detection/util/socket/FormalTestManager.java +++ b/detection/src/main/java/com/njcn/gather/detection/util/socket/FormalTestManager.java @@ -230,8 +230,6 @@ public class FormalTestManager { * 清理变频器耐受实验运行态数据 */ public static void clearFreqConverterRuntimeState() { - freqConverterStep = null; - freqConverterDevStep = null; currentFreqConverterId = null; freqConverterTableSuffix = null; pendingDipTaskMap.clear();