From f3f1de99611bd063c676b23fdd738a39f04f10de Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Tue, 22 Aug 2023 18:22:27 +0800 Subject: [PATCH] fix --- server/websocket/internal/logic/ws_render_image_logic.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/websocket/internal/logic/ws_render_image_logic.go b/server/websocket/internal/logic/ws_render_image_logic.go index f3e09ecd..b14f8972 100644 --- a/server/websocket/internal/logic/ws_render_image_logic.go +++ b/server/websocket/internal/logic/ws_render_image_logic.go @@ -389,6 +389,10 @@ func (w *wsConnectItem) deleteRenderTask(data renderImageControlChanItem) { // 修改耗时属性(只有耗时属性可以更新) func (w *wsConnectItem) modifyRenderTaskTimeConsuming(data renderImageControlChanItem) { + if data.TaskId == "" { + logx.Error("设置耗时属性需要的task_id不能为空") + return + } //强制设为修改耗时属性 data.Option = 2 select {