This commit is contained in:
laodaming 2023-10-18 14:35:33 +08:00
parent 4064cc8c2b
commit 90e0169eb7
2 changed files with 6 additions and 4 deletions

View File

@ -454,6 +454,7 @@ func (w *wsConnectItem) respondDataFormat(msgType constants.Websocket, data inte
d := websocket_data.DataTransferData{
T: msgType,
D: data,
OpenDebug: w.debug != nil,
}
b, _ := json.Marshal(d)
return b

View File

@ -6,6 +6,7 @@ import "fusenapi/constants"
type DataTransferData struct {
T constants.Websocket `json:"t"` //消息类型
D interface{} `json:"d"` //传递的消息
OpenDebug bool `json:"open_debug"` //是否开启debug
}
// websocket接受要云渲染处理的数据