1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

Merge pull request #321 from zhaodice/patch-1

使逻辑更加科学(x)
This commit is contained in:
Mrs4s 2023-03-12 22:12:22 +08:00 committed by GitHub
commit 653b853ca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ func (c *QQClient) buildLoginPacket() (uint16, []byte) {
t.Append(t544)
}
}
if c.Device().QImei36 != "" {
if c.Device().QImei16 != "" {
t.Append(tlv.T545([]byte(c.Device().QImei16)))
} else {
t.Append(tlv.T545([]byte(c.Device().IMEI)))
@ -463,7 +463,7 @@ func (c *QQClient) buildRequestTgtgtNopicsigPacket() (uint16, []byte) {
tlv.T525(tlv.T536([]byte{0x01, 0x00})),
},
}
if c.Device().QImei36 != "" {
if c.Device().QImei16 != "" {
t.Append(tlv.T545([]byte(c.Device().QImei16)))
} else {
t.Append(tlv.T545([]byte(c.Device().IMEI)))