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连接")