diff --git a/server/websocket/internal/logic/allocation_processing_factory.go b/server/websocket/internal/logic/allocation_processing_factory.go index 19810773..4eb19507 100644 --- a/server/websocket/internal/logic/allocation_processing_factory.go +++ b/server/websocket/internal/logic/allocation_processing_factory.go @@ -19,10 +19,10 @@ func (w *wsConnectItem) newAllocationProcessor(msgType constants.Websocket) allo switch msgType { //图片渲染 case constants.WEBSOCKET_RENDER_IMAGE: - obj = &renderProcessor{w} + obj = &renderProcessor{*w} //刷新重连请求恢复上次连接的标识 case constants.WEBSOCKET_REQUEST_REUSE_LAST_CONNECT: - obj = &reuseConnProcessor{w} + obj = &reuseConnProcessor{*w} default: } diff --git a/server/websocket/internal/logic/ws_render_image.go b/server/websocket/internal/logic/ws_render_image.go index 78f65fbf..bb489915 100644 --- a/server/websocket/internal/logic/ws_render_image.go +++ b/server/websocket/internal/logic/ws_render_image.go @@ -20,7 +20,7 @@ import ( // 渲染处理器 type renderProcessor struct { - w *wsConnectItem + w wsConnectItem } // 云渲染属性 diff --git a/server/websocket/internal/logic/ws_reuse_last_connect.go b/server/websocket/internal/logic/ws_reuse_last_connect.go index e826732c..88ee0894 100644 --- a/server/websocket/internal/logic/ws_reuse_last_connect.go +++ b/server/websocket/internal/logic/ws_reuse_last_connect.go @@ -11,7 +11,7 @@ import ( // 复用连接处理器 type reuseConnProcessor struct { - w *wsConnectItem + w wsConnectItem } func (r *reuseConnProcessor) allocationMessage(data []byte) {