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

Merge pull request #218 from LXY1226/chore-examp

chore: 将exchange_emp的错误码塞在error中
This commit is contained in:
Mrs4s 2021-12-16 18:37:33 +08:00 committed by GitHub
commit 58e81648e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,8 +204,7 @@ func decodeExchangeEmpResponse(c *QQClient, _ *incomingPacketInfo, payload []byt
reader.ReadUInt16() reader.ReadUInt16()
m := reader.ReadTlvMap(2) m := reader.ReadTlvMap(2)
if t != 0 { if t != 0 {
c.Error("exchange_emp error: %v", t) return nil, errors.Errorf("exchange_emp failed: %v", t)
return nil, errors.New("exchange_emp failed")
} }
if cmd == 15 { if cmd == 15 {
c.decodeT119R(m[0x119]) c.decodeT119R(m[0x119])