1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00

更改枚举位置

This commit is contained in:
wdvxdr 2020-09-30 13:52:40 +08:00
parent e56dc8f3f6
commit c4b2436f96
4 changed files with 14 additions and 13 deletions

View File

@ -1260,7 +1260,7 @@ func (c *QQClient) buildWordSegmentationPacket(data []byte) (uint16, []byte) {
} }
// OidbSvc.0xdad_1 // OidbSvc.0xdad_1
func (c *QQClient) sendGroupGiftPacket(groupCode, uin uint64, productId GroupGift) (uint16, []byte) { func (c *QQClient) sendGroupGiftPacket(groupCode, uin uint64, productId message.GroupGift) (uint16, []byte) {
seq := c.nextSeq() seq := c.nextSeq()
body := &oidb.DADReqBody{ body := &oidb.DADReqBody{
Client: 1, Client: 1,

View File

@ -954,7 +954,7 @@ func (c *QQClient) SetCustomServer(servers []*net.TCPAddr) {
c.servers = append(servers, c.servers...) c.servers = append(servers, c.servers...)
} }
func (c *QQClient) SendGroupGift(groupCode, uin uint64, gift GroupGift) { func (c *QQClient) SendGroupGift(groupCode, uin uint64, gift message.GroupGift) {
_, packet := c.sendGroupGiftPacket(groupCode, uin, gift) _, packet := c.sendGroupGiftPacket(groupCode, uin, gift)
_ = c.send(packet) _ = c.send(packet)
} }

View File

@ -19,8 +19,6 @@ type (
ClientProtocol int ClientProtocol int
GroupGift int
LoginResponse struct { LoginResponse struct {
Success bool Success bool
Error LoginError Error LoginError
@ -254,15 +252,6 @@ const (
AndroidPad ClientProtocol = 537062409 AndroidPad ClientProtocol = 537062409
AndroidWatch ClientProtocol = 537061176 AndroidWatch ClientProtocol = 537061176
SweetWink GroupGift = 285
HappyCola GroupGift = 289
LuckyBracelet GroupGift = 290
Cappuccino GroupGift = 299
CatWatch GroupGift = 302
FleeceGloves GroupGift = 302
RainbowCandy GroupGift = 308
Stronger GroupGift = 313
LoveMicrophone GroupGift = 367
) )
func (g *GroupInfo) UpdateName(newName string) { func (g *GroupInfo) UpdateName(newName string) {

View File

@ -70,6 +70,8 @@ type (
} }
ElementType int ElementType int
GroupGift int
) )
const ( const (
@ -85,6 +87,16 @@ const (
Video Video
LightApp LightApp
RedBag RedBag
SweetWink GroupGift = 285
HappyCola GroupGift = 289
LuckyBracelet GroupGift = 290
Cappuccino GroupGift = 299
CatWatch GroupGift = 302
FleeceGloves GroupGift = 302
RainbowCandy GroupGift = 308
Stronger GroupGift = 313
LoveMicrophone GroupGift = 367
) )
func (s *Sender) IsAnonymous() bool { func (s *Sender) IsAnonymous() bool {