From 4bedece94eabf2b8a8bed3eec4ac6a45d601359f Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 30 Oct 2023 15:33:28 +0800 Subject: [PATCH] fix --- server/websocket/internal/logic/ws_render_image.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/websocket/internal/logic/ws_render_image.go b/server/websocket/internal/logic/ws_render_image.go index 9bc78d0e..83525364 100644 --- a/server/websocket/internal/logic/ws_render_image.go +++ b/server/websocket/internal/logic/ws_render_image.go @@ -51,9 +51,9 @@ func (r *renderProcessor) allocationMessage(w *wsConnectItem, data []byte) { } //颜色/模板标签/logo变更 ifCancelOldCtx := false - if renderImageData.RenderData.TemplateTag != w.extendRenderProperty.templateTag { + /*if renderImageData.RenderData.TemplateTag != w.extendRenderProperty.templateTag { ifCancelOldCtx = true - } + }*/ if renderImageData.RenderData.TemplateTagColor.SelectedColorIndex != w.extendRenderProperty.selectColorIndex { ifCancelOldCtx = true } @@ -97,10 +97,10 @@ func (w *wsConnectItem) consumeRenderImageData() { return case data := <-w.extendRenderProperty.renderChan: //消费数据 //标签不一样 - if data.RenderData.TemplateTag != w.extendRenderProperty.templateTag { + /*if data.RenderData.TemplateTag != w.extendRenderProperty.templateTag { //logx.Info("标签不一致,丢弃消息") continue - } + }*/ //颜色不一致 if data.RenderData.TemplateTagColor.SelectedColorIndex != w.extendRenderProperty.selectColorIndex { //logx.Info("颜色不一致,丢弃消息")