mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
update.
This commit is contained in:
parent
cff6d723a9
commit
85e7553b29
@ -3,7 +3,6 @@ package client
|
|||||||
import (
|
import (
|
||||||
"crypto/md5"
|
"crypto/md5"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"github.com/Mrs4s/MiraiGo/binary"
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb"
|
"github.com/Mrs4s/MiraiGo/client/pb"
|
||||||
"github.com/Mrs4s/MiraiGo/message"
|
"github.com/Mrs4s/MiraiGo/message"
|
||||||
@ -431,7 +430,6 @@ func (c *QQClient) loop() {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.Println(pkt.CommandName)
|
|
||||||
go func() {
|
go func() {
|
||||||
decoder, ok := c.decoders[pkt.CommandName]
|
decoder, ok := c.decoders[pkt.CommandName]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
@ -181,7 +181,7 @@ func parseMessageElems(elems []*msg.Elem) []message.IMessageElement {
|
|||||||
res = append(res, message.NewText(elem.Text.Str))
|
res = append(res, message.NewText(elem.Text.Str))
|
||||||
}
|
}
|
||||||
if elem.CustomFace != nil {
|
if elem.CustomFace != nil {
|
||||||
res = append(res, message.NewNetImage(elem.CustomFace.FilePath, "http://gchat.qpic.cn/"+elem.CustomFace.OrigUrl))
|
res = append(res, message.NewNetImage(elem.CustomFace.FilePath, "http://gchat.qpic.cn"+elem.CustomFace.OrigUrl))
|
||||||
}
|
}
|
||||||
if elem.NotOnlineImage != nil {
|
if elem.NotOnlineImage != nil {
|
||||||
var img string
|
var img string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user