mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-12 22:52:10 +08:00
[fix] 上传数据非法字符
This commit is contained in:
@@ -39,6 +39,9 @@ func (s *HookService) handleOne(msg *netbase.DeviceEventInfo) {
|
|||||||
<-s.Ch
|
<-s.Ch
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
// 去除上传数据的非法空字符
|
||||||
|
// msg.Datas = strings.ReplaceAll(msg.Datas, "\\u0000", "")
|
||||||
|
|
||||||
switch msg.Type {
|
switch msg.Type {
|
||||||
case message.RowMes, message.AttributesMes, message.TelemetryMes, message.RpcRequestFromDevice:
|
case message.RowMes, message.AttributesMes, message.TelemetryMes, message.RpcRequestFromDevice:
|
||||||
msgVals := make(map[string]interface{})
|
msgVals := make(map[string]interface{})
|
||||||
|
|||||||
Reference in New Issue
Block a user