mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
fix bug.
This commit is contained in:
parent
0198f71ff8
commit
274c4a329a
@ -753,8 +753,8 @@ func (c *QQClient) buildGroupPttStorePacket(groupCode int64, md5 []byte, size, c
|
|||||||
func (c *QQClient) buildSystemMsgNewGroupPacket() (uint16, []byte) {
|
func (c *QQClient) buildSystemMsgNewGroupPacket() (uint16, []byte) {
|
||||||
seq := c.nextSeq()
|
seq := c.nextSeq()
|
||||||
req := &structmsg.ReqSystemMsgNew{
|
req := &structmsg.ReqSystemMsgNew{
|
||||||
MsgNum: 10,
|
MsgNum: 100,
|
||||||
Version: 100,
|
Version: 1000,
|
||||||
Checktype: 3,
|
Checktype: 3,
|
||||||
Flag: &structmsg.FlagInfo{
|
Flag: &structmsg.FlagInfo{
|
||||||
GrpMsgKickAdmin: 1,
|
GrpMsgKickAdmin: 1,
|
||||||
|
@ -306,7 +306,6 @@ func ToProtoElems(elems []IMessageElement, generalFlags bool) (r []*msg.Elem) {
|
|||||||
CustomFace: &msg.CustomFace{
|
CustomFace: &msg.CustomFace{
|
||||||
FilePath: e.Filename,
|
FilePath: e.Filename,
|
||||||
Md5: e.Md5,
|
Md5: e.Md5,
|
||||||
//Size: e.Size,
|
|
||||||
Flag: make([]byte, 4),
|
Flag: make([]byte, 4),
|
||||||
OldData: imgOld,
|
OldData: imgOld,
|
||||||
},
|
},
|
||||||
@ -314,12 +313,11 @@ func ToProtoElems(elems []IMessageElement, generalFlags bool) (r []*msg.Elem) {
|
|||||||
case *GroupImageElement:
|
case *GroupImageElement:
|
||||||
r = append(r, &msg.Elem{
|
r = append(r, &msg.Elem{
|
||||||
CustomFace: &msg.CustomFace{
|
CustomFace: &msg.CustomFace{
|
||||||
//FileType: 66,
|
FileType: 66,
|
||||||
Useful: 1,
|
Useful: 1,
|
||||||
Origin: 1,
|
Origin: 1,
|
||||||
FileId: int32(e.FileId),
|
FileId: int32(e.FileId),
|
||||||
FilePath: e.ImageId,
|
FilePath: e.ImageId,
|
||||||
Size: e.Size,
|
|
||||||
Md5: e.Md5[:],
|
Md5: e.Md5[:],
|
||||||
Flag: make([]byte, 4),
|
Flag: make([]byte, 4),
|
||||||
//OldData: imgOld,
|
//OldData: imgOld,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user