fix
This commit is contained in:
parent
77066ec392
commit
b09925dd09
|
@ -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连接")
|
||||
|
|
Loading…
Reference in New Issue
Block a user