This commit is contained in:
laodaming 2023-10-30 15:33:28 +08:00
parent b1673687a8
commit 4bedece94e

View File

@ -51,9 +51,9 @@ func (r *renderProcessor) allocationMessage(w *wsConnectItem, data []byte) {
} }
//颜色/模板标签/logo变更 //颜色/模板标签/logo变更
ifCancelOldCtx := false ifCancelOldCtx := false
if renderImageData.RenderData.TemplateTag != w.extendRenderProperty.templateTag { /*if renderImageData.RenderData.TemplateTag != w.extendRenderProperty.templateTag {
ifCancelOldCtx = true ifCancelOldCtx = true
} }*/
if renderImageData.RenderData.TemplateTagColor.SelectedColorIndex != w.extendRenderProperty.selectColorIndex { if renderImageData.RenderData.TemplateTagColor.SelectedColorIndex != w.extendRenderProperty.selectColorIndex {
ifCancelOldCtx = true ifCancelOldCtx = true
} }
@ -97,10 +97,10 @@ func (w *wsConnectItem) consumeRenderImageData() {
return return
case data := <-w.extendRenderProperty.renderChan: //消费数据 case data := <-w.extendRenderProperty.renderChan: //消费数据
//标签不一样 //标签不一样
if data.RenderData.TemplateTag != w.extendRenderProperty.templateTag { /*if data.RenderData.TemplateTag != w.extendRenderProperty.templateTag {
//logx.Info("标签不一致,丢弃消息") //logx.Info("标签不一致,丢弃消息")
continue continue
} }*/
//颜色不一致 //颜色不一致
if data.RenderData.TemplateTagColor.SelectedColorIndex != w.extendRenderProperty.selectColorIndex { if data.RenderData.TemplateTagColor.SelectedColorIndex != w.extendRenderProperty.selectColorIndex {
//logx.Info("颜色不一致,丢弃消息") //logx.Info("颜色不一致,丢弃消息")