From b09925dd0919767eef775bfc31750a1d608e1e2b Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 1 Nov 2023 15:45:21 +0800 Subject: [PATCH] fix --- server/websocket/internal/logic/rendernotifylogic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/websocket/internal/logic/rendernotifylogic.go b/server/websocket/internal/logic/rendernotifylogic.go index 53fc87b3..ae4b6651 100644 --- a/server/websocket/internal/logic/rendernotifylogic.go +++ b/server/websocket/internal/logic/rendernotifylogic.go @@ -108,6 +108,8 @@ func (l *RenderNotifyLogic) RenderNotify(req *types.RenderNotifyReq, userinfo *a return resp.SetStatusWithMessage(basic.CodeOK, "success:but websocket connect not found") } //渲染失败走下面 + //统计unity失败处理数 + increaseUnityErrorCount(req.UserId, req.GuestId) if wsConnectOk { //断言连接 ws, ok := value.(wsConnectItem) @@ -117,8 +119,6 @@ func (l *RenderNotifyLogic) RenderNotify(req *types.RenderNotifyReq, userinfo *a } //发送错误信息给前端 ws.renderErrResponse(requestId, info.TemplateTag, info.TaskId, "unity云渲染错误:"+req.Msg, 0, 0, 0, 0, 0, 0, 0) - //统计unity处理数 - increaseUnityErrorCount(req.UserId, req.GuestId) logx.Info("渲染失败且发送了失败信息") } else { logx.Info("渲染失败且找不到ws连接")