fix
This commit is contained in:
parent
31ddad6dc1
commit
58423feac4
|
@ -43,7 +43,10 @@ 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返回的渲染结果消息======")
|
||||
if req.Code != 0 {
|
||||
//统计unity失败处理数
|
||||
increaseUnityErrorCount(req.UserId, req.GuestId)
|
||||
}
|
||||
req.TaskId = strings.Trim(req.TaskId, " ")
|
||||
if req.TaskId == "" {
|
||||
logx.Error("渲染回调参数错误:任务标识")
|
||||
|
@ -108,8 +111,6 @@ 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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user