fix
This commit is contained in:
parent
4b7f920b5a
commit
57e6b0227f
|
@ -454,7 +454,7 @@ func (w *wsConnectItem) respondDataFormat(msgType constants.Websocket, data inte
|
||||||
d := websocket_data.DataTransferData{
|
d := websocket_data.DataTransferData{
|
||||||
T: msgType,
|
T: msgType,
|
||||||
D: data,
|
D: data,
|
||||||
OpenDebug: w.debug != nil,
|
Debug: w.debug != nil,
|
||||||
}
|
}
|
||||||
b, _ := json.Marshal(d)
|
b, _ := json.Marshal(d)
|
||||||
return b
|
return b
|
||||||
|
|
|
@ -6,7 +6,7 @@ import "fusenapi/constants"
|
||||||
type DataTransferData struct {
|
type DataTransferData struct {
|
||||||
T constants.Websocket `json:"t"` //消息类型
|
T constants.Websocket `json:"t"` //消息类型
|
||||||
D interface{} `json:"d"` //传递的消息
|
D interface{} `json:"d"` //传递的消息
|
||||||
OpenDebug bool `json:"open_debug"` //是否开启debug
|
Debug bool `json:"debug"` //是否开启debug
|
||||||
}
|
}
|
||||||
|
|
||||||
// websocket接受要云渲染处理的数据
|
// websocket接受要云渲染处理的数据
|
||||||
|
|
Loading…
Reference in New Issue
Block a user