fix
This commit is contained in:
@@ -452,8 +452,9 @@ func (w *wsConnectItem) sendToInChan(data []byte) {
|
||||
// 格式化为websocket标准返回格式
|
||||
func (w *wsConnectItem) respondDataFormat(msgType constants.Websocket, data interface{}) []byte {
|
||||
d := websocket_data.DataTransferData{
|
||||
T: msgType,
|
||||
D: data,
|
||||
T: msgType,
|
||||
D: data,
|
||||
OpenDebug: w.debug != nil,
|
||||
}
|
||||
b, _ := json.Marshal(d)
|
||||
return b
|
||||
|
||||
Reference in New Issue
Block a user