From c92096e7ae9361f5f963c0c78b9903300cebd4f4 Mon Sep 17 00:00:00 2001 From: synodriver Date: Sun, 19 Jun 2022 15:18:41 +0800 Subject: [PATCH] fix sign packet error (#278) * fix sign packet error * Update sign.go --- client/sign.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/client/sign.go b/client/sign.go index aa02958d..16af0c4c 100644 --- a/client/sign.go +++ b/client/sign.go @@ -9,19 +9,18 @@ import ( // SendGroupSign 发送群聊打卡消息 func (c *QQClient) SendGroupSign(target int64) { - _, _ = c.sendAndWait(c.buildGroupSignPacket(target, 0)) + _, _ = c.sendAndWait(c.buildGroupSignPacket(target)) } -func (c *QQClient) buildGroupSignPacket(groupId int64, scene uint32) (uint16, []byte) { +func (c *QQClient) buildGroupSignPacket(groupId int64) (uint16, []byte) { body := &oidb.DEB7ReqBody{ - SignInStatusReq: &oidb.StSignInStatusReq{ + SignInWriteReq: &oidb.StSignInWriteReq{ Uid: proto.Some(strconv.Itoa(int(c.Uin))), GroupId: proto.Some(strconv.Itoa(int(groupId))), - Scene: proto.Some(scene), - ClientVersion: proto.Some("8.5.0.5025"), + ClientVersion: proto.Some("8.5.0"), }, } b, _ := proto.Marshal(body) - payload := c.packOIDBPackage(3767, 0, b) + payload := c.packOIDBPackage(3767, 1, b) return c.uniPacket("OidbSvc.0xeb7", payload) }