fix
This commit is contained in:
parent
9f9f7d3fd6
commit
64a284bd77
|
@ -262,7 +262,7 @@ func (w *wsConnectItem) dealwithReciveData(data []byte) {
|
|||
var parseInfo types.DataTransferData
|
||||
if err := json.Unmarshal(data, &parseInfo); err != nil {
|
||||
logx.Error("invalid format of websocket message")
|
||||
w.outChan <- w.respondDataFormat(constants.WEBSOCKET_ERR_DATA_FORMAT, "invalid format of websocket message")
|
||||
w.outChan <- w.respondDataFormat(constants.WEBSOCKET_ERR_DATA_FORMAT, "invalid format of websocket message:"+string(data))
|
||||
return
|
||||
}
|
||||
d, _ := json.Marshal(parseInfo.D)
|
||||
|
|
|
@ -26,7 +26,7 @@ func (w *wsConnectItem) SendToCloudRender(data []byte) {
|
|||
select {
|
||||
case <-w.closeChan:
|
||||
return
|
||||
case w.outChan <- w.respondDataFormat(constants.WEBSOCKET_ERR_DATA_FORMAT, "invalid format of websocket render image message"):
|
||||
case w.outChan <- w.respondDataFormat(constants.WEBSOCKET_ERR_DATA_FORMAT, "invalid format of websocket render image message:"+string(data)):
|
||||
logx.Error("invalid format of websocket render image message", err)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user