From 07d3e4aa6478fe61edb271d80cbc61d037e6f409 Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期六, 05 九月 2026 11:45:36 +0800
Subject: [PATCH] 对齐控制台时间与扩展测量响应

---
 ruoyi-system/src/main/java/com/ruoyi/system/service/ITestLiveService.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITestLiveService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITestLiveService.java
index 26cd372..d39ebc9 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITestLiveService.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITestLiveService.java
@@ -13,12 +13,12 @@
 
     /** 打开实时 SSE;连接初次发送当前事实,后续只推送最新快照。 */
     SseEmitter stream(Long testId);
-    record LiveState(Long testId, String testStatus, String receptionStatus, Instant updatedAt,
+    record LiveState(Long testId, String testStatus, String receptionStatus, long updatedAt,
             List<LiveSource> sources, List<Map<String, Object>> exceptions, TestPlanSnapshot testPlan)
     {
         public LiveState(Long testId, String testStatus, String receptionStatus, Instant updatedAt,
                 List<LiveSource> sources, List<Map<String, Object>> exceptions)
-        { this(testId, testStatus, receptionStatus, updatedAt, sources, exceptions, null); }
+        { this(testId, testStatus, receptionStatus, updatedAt.toEpochMilli(), sources, exceptions, null); }
     }
     record TestPlanSnapshot(int currentCycleNo, int currentStepNo, int plannedCycleCount,
             List<TestPlanRow> rows) { }

--
Gitblit v1.7.1