From bfa1d53b44a0dbd8a9478c748ad9b83af5b0df73 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Tue, 22 Aug 2023 10:36:38 +0800 Subject: [PATCH] fix --- server/websocket/internal/logic/rendernotifylogic.go | 1 + server/websocket/internal/logic/ws_render_image_logic.go | 3 +++ 2 files changed, 4 insertions(+) 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(), },