1
This commit is contained in:
parent
dda3da13cd
commit
4457eba47f
|
@ -68,14 +68,14 @@ func (w *wsConnectItem) consumeRenderImageData() {
|
||||||
case <-w.closeChan: //已关闭
|
case <-w.closeChan: //已关闭
|
||||||
return
|
return
|
||||||
case data := <-w.extendRenderProperty.renderChan:
|
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))
|
logx.Info("消费渲染数据:", string(data))
|
||||||
var renderImageData websocket_data.RenderImageReqMsg
|
var renderImageData websocket_data.RenderImageReqMsg
|
||||||
if err := json.Unmarshal(data, &renderImageData); err != nil {
|
if err := json.Unmarshal(data, &renderImageData); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user