1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-06 12:03:50 +08:00

Merge pull request #59 from wdvxdr1123/master

fix group gift send
This commit is contained in:
Mrs4s 2020-10-22 16:59:26 +08:00 committed by GitHub
commit cb00b87bd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1267,7 +1267,7 @@ func (c *QQClient) sendGroupGiftPacket(groupCode, uin uint64, productId message.
Version: "V 8.4.5.4745", Version: "V 8.4.5.4745",
Sig: &oidb.DADLoginSig{ Sig: &oidb.DADLoginSig{
Type: 1, Type: 1,
Sig: c.sigInfo.sKey, Sig: []byte(c.getSKey()),
}, },
} }
b, _ := proto.Marshal(body) b, _ := proto.Marshal(body)

View File

@ -276,7 +276,7 @@ func ToProtoElems(elems []IMessageElement, generalFlags bool) (r []*msg.Elem) {
} }
} }
for _, elem := range elems { for _, elem := range elems {
if e,ok := elem.(IRichMessageElement);ok{ if e, ok := elem.(IRichMessageElement); ok {
r = append(r, e.Pack()...) r = append(r, e.Pack()...)
} }
} }
@ -485,7 +485,7 @@ func ParseMessageElems(elems []*msg.Elem) []IMessageElement {
Size: flash.FlashTroopPic.Size, Size: flash.FlashTroopPic.Size,
Width: flash.FlashTroopPic.Width, Width: flash.FlashTroopPic.Width,
Height: flash.FlashTroopPic.Height, Height: flash.FlashTroopPic.Height,
Md5: flash.FlashTroopPic.Md5, Md5: flash.FlashTroopPic.Md5,
}) })
} }
if flash.FlashC2CPic != nil { if flash.FlashC2CPic != nil {