This commit is contained in:
laodaming 2023-11-01 14:04:03 +08:00
parent a6a01dae3d
commit 91b45e3595
2 changed files with 2 additions and 2 deletions

View File

@ -41,6 +41,8 @@ func NewRenderNotifyLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Rend
// }
func (l *RenderNotifyLogic) RenderNotify(req *types.RenderNotifyReq, userinfo *auth.UserInfo) (resp *basic.Response) {
//统计unity处理数
decreaseUnityRequestCount(req.UserId, req.GuestId)
logx.Info("=====收到unity返回的渲染结果消息======")
req.TaskId = strings.Trim(req.TaskId, " ")
if req.TaskId == "" {

View File

@ -59,8 +59,6 @@ func (w *wsConnectItem) sendRenderDataToUnityStepResponseMessage(requestId strin
// 发送渲染最终结果数据到前端
func (w *wsConnectItem) sendRenderResultData(data websocket_data.RenderImageRspMsg) {
//统计unity处理数
decreaseUnityRequestCount(w.userId, w.guestId)
//没开启debug
if w.debug == nil {
data.RenderProcessTime = websocket_data.RenderProcessTime{}