1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00
This commit is contained in:
Mrs4s 2020-07-11 02:46:48 +08:00
parent cff6d723a9
commit 85e7553b29
2 changed files with 1 additions and 3 deletions

View File

@ -3,7 +3,6 @@ package client
import (
"crypto/md5"
"errors"
"fmt"
"github.com/Mrs4s/MiraiGo/binary"
"github.com/Mrs4s/MiraiGo/client/pb"
"github.com/Mrs4s/MiraiGo/message"
@ -431,7 +430,6 @@ func (c *QQClient) loop() {
continue
}
}
fmt.Println(pkt.CommandName)
go func() {
decoder, ok := c.decoders[pkt.CommandName]
if !ok {

View File

@ -181,7 +181,7 @@ func parseMessageElems(elems []*msg.Elem) []message.IMessageElement {
res = append(res, message.NewText(elem.Text.Str))
}
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 {
var img string