1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-03 18:47:41 +08:00
This commit is contained in:
scjtqs 2020-08-31 00:29:25 +08:00
parent 9c48d0907b
commit 8965f680f4

View File

@ -348,9 +348,9 @@ func ToProtoElems(elems []IMessageElement, generalFlags bool) (r []*msg.Elem) {
continue
}
if e.SubType == "json" {
r = append(r,&msg.Elem{
LightApp:&msg.LightAppElem{
Data:append([]byte{1}, binary.ZlibCompress([]byte(e.Content))...),
r = append(r, &msg.Elem{
LightApp: &msg.LightAppElem{
Data: append([]byte{1}, binary.ZlibCompress([]byte(e.Content))...),
MsgResid: []byte{1},
},
})