diff --git a/server/websocket/internal/logic/rendernotifylogic.go b/server/websocket/internal/logic/rendernotifylogic.go index 95472578..d9e3aab8 100644 --- a/server/websocket/internal/logic/rendernotifylogic.go +++ b/server/websocket/internal/logic/rendernotifylogic.go @@ -80,6 +80,7 @@ func (l *RenderNotifyLogic) RenderNotify(req *types.RenderNotifyReq, userinfo *a //记录收到unity渲染结果时间 ws.modifyRenderTaskTimeConsuming(renderImageControlChanItem{ Option: 2, + TaskId: req.TaskId, TaskProperty: renderTask{ UnityRenderEndTime: time.Now().UTC().Unix(), }, diff --git a/server/websocket/internal/logic/ws_render_image_logic.go b/server/websocket/internal/logic/ws_render_image_logic.go index 1d43a34c..24c33917 100644 --- a/server/websocket/internal/logic/ws_render_image_logic.go +++ b/server/websocket/internal/logic/ws_render_image_logic.go @@ -181,6 +181,7 @@ func (w *wsConnectItem) assembleRenderData(taskId string, info websocket_data.Re //记录刀版图合成开始时间 w.modifyRenderTaskTimeConsuming(renderImageControlChanItem{ Option: 2, + TaskId: taskId, TaskProperty: renderTask{ CombineBeginTime: time.Now().UTC().Unix(), }, @@ -211,6 +212,7 @@ func (w *wsConnectItem) assembleRenderData(taskId string, info websocket_data.Re //记录刀版图合成结束时间 w.modifyRenderTaskTimeConsuming(renderImageControlChanItem{ Option: 2, + TaskId: taskId, TaskProperty: renderTask{ CombineEndTime: time.Now().UTC().Unix(), }, @@ -317,6 +319,7 @@ func (w *wsConnectItem) assembleRenderData(taskId string, info websocket_data.Re //记录发送到unity时间 w.modifyRenderTaskTimeConsuming(renderImageControlChanItem{ Option: 2, + TaskId: taskId, TaskProperty: renderTask{ UnityRenderBeginTime: time.Now().UTC().Unix(), },