This commit is contained in:
laodaming 2023-11-01 15:45:21 +08:00
parent 77066ec392
commit b09925dd09

View File

@ -108,6 +108,8 @@ func (l *RenderNotifyLogic) RenderNotify(req *types.RenderNotifyReq, userinfo *a
return resp.SetStatusWithMessage(basic.CodeOK, "successbut websocket connect not found") return resp.SetStatusWithMessage(basic.CodeOK, "successbut websocket connect not found")
} }
//渲染失败走下面 //渲染失败走下面
//统计unity失败处理数
increaseUnityErrorCount(req.UserId, req.GuestId)
if wsConnectOk { if wsConnectOk {
//断言连接 //断言连接
ws, ok := value.(wsConnectItem) 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) 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("渲染失败且发送了失败信息") logx.Info("渲染失败且发送了失败信息")
} else { } else {
logx.Info("渲染失败且找不到ws连接") logx.Info("渲染失败且找不到ws连接")