This commit is contained in:
laodaming 2023-08-30 14:18:55 +08:00
parent dda3da13cd
commit 4457eba47f

View File

@ -68,14 +68,14 @@ func (w *wsConnectItem) consumeRenderImageData() {
case <-w.closeChan: //已关闭
return
case data := <-w.extendRenderProperty.renderChan:
w.consumeRenderCache(data)
w.renderImage(data)
}
}
}
// 消费渲染缓冲数据
func (w *wsConnectItem) consumeRenderCache(data []byte) {
// 执行渲染任务
func (w *wsConnectItem) renderImage(data []byte) {
logx.Info("消费渲染数据:", string(data))
var renderImageData websocket_data.RenderImageReqMsg
if err := json.Unmarshal(data, &renderImageData); err != nil {