1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +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 ( 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 {

View File

@ -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