1
This commit is contained in:
parent
dda3da13cd
commit
4457eba47f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user