yeg
2026-09-02 74f55db1acd945f4860b2d0b4bae48e2b918b32b
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TTestLiveController.java
@@ -17,12 +17,14 @@
public class TTestLiveController extends BaseController
{
    private final ITestLiveService liveService;
    public TTestLiveController(ITestLiveService liveService) { this.liveService = liveService; }
    public TTestLiveController(ITestLiveService liveService)
    { this.liveService = liveService; }
    @PreAuthorize("@ss.hasPermi('system:test:query')")
    @GetMapping("/{testId}/live-state")
    public AjaxResult liveState(@PathVariable Long testId) { return success(liveService.current(testId)); }
    /** 查询测试完整性问题和可追溯的历史异常事实。 */
    @PreAuthorize("@ss.hasPermi('system:test:query')")
    @GetMapping(value = "/{testId}/live", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
    public SseEmitter live(@PathVariable Long testId) { return liveService.stream(testId); }