mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
fix poke event.
This commit is contained in:
parent
857e891976
commit
50af23569c
@ -39,8 +39,7 @@ type (
|
|||||||
|
|
||||||
// grayTipProcessor 提取出来专门用于处理群内 notify tips
|
// grayTipProcessor 提取出来专门用于处理群内 notify tips
|
||||||
func (c *QQClient) grayTipProcessor(groupId int64, tipInfo *notify.GeneralGrayTipInfo) {
|
func (c *QQClient) grayTipProcessor(groupId int64, tipInfo *notify.GeneralGrayTipInfo) {
|
||||||
switch tipInfo.TemplId {
|
if tipInfo.BusiType == 12 && tipInfo.BusiId == 1061 {
|
||||||
case 10043, 1136, 1132: // 戳一戳
|
|
||||||
var sender int64 = 0
|
var sender int64 = 0
|
||||||
receiver := c.Uin
|
receiver := c.Uin
|
||||||
for _, templ := range tipInfo.MsgTemplParam {
|
for _, templ := range tipInfo.MsgTemplParam {
|
||||||
@ -51,11 +50,15 @@ func (c *QQClient) grayTipProcessor(groupId int64, tipInfo *notify.GeneralGrayTi
|
|||||||
receiver, _ = strconv.ParseInt(templ.Value, 10, 64)
|
receiver, _ = strconv.ParseInt(templ.Value, 10, 64)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if sender != 0 {
|
||||||
c.dispatchGroupNotifyEvent(&GroupPokeNotifyEvent{
|
c.dispatchGroupNotifyEvent(&GroupPokeNotifyEvent{
|
||||||
GroupCode: groupId,
|
GroupCode: groupId,
|
||||||
Sender: sender,
|
Sender: sender,
|
||||||
Receiver: receiver,
|
Receiver: receiver,
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
switch tipInfo.TemplId {
|
||||||
case 1052, 1053, 1054, 1067: // 群荣誉
|
case 1052, 1053, 1054, 1067: // 群荣誉
|
||||||
var nick string
|
var nick string
|
||||||
var uin int64
|
var uin int64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user