This commit is contained in:
laodaming 2023-10-07 15:44:44 +08:00
parent 6cdb8b6e6b
commit 9858300984

View File

@ -86,10 +86,12 @@ func (w *wsConnectItem) consumeRenderImageData() {
case data := <-w.extendRenderProperty.renderChan: //消费数据
//标签不一样
if data.RenderData.TemplateTag != w.extendRenderProperty.templateTag {
logx.Info("标签不一致,丢弃消息")
continue
}
//颜色不一致
if data.RenderData.TemplateTagColor.SelectedColorIndex != w.extendRenderProperty.selectColorIndex {
logx.Info("颜色不一致,丢弃消息")
continue
}
limitChan <- struct{}{}