mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
fix: nil pointer error
This commit is contained in:
parent
425f3e4d0c
commit
190c061e69
@ -50,7 +50,7 @@ func (t *Transport) packBody(req *Request, w *binary.Writer) {
|
||||
w.WriteUInt32(uint32(len(secSign) + 4))
|
||||
w.Write(secSign)
|
||||
}
|
||||
if wrapper.AllowSignSendMsg() && req.CommandName == "MessageSvc.PbSendMsg" {
|
||||
if wrapper.AllowSignSendMsg != nil && wrapper.AllowSignSendMsg() && req.CommandName == "MessageSvc.PbSendMsg" {
|
||||
secSign := t.PackSecSign(req)
|
||||
w.WriteUInt32(uint32(len(secSign) + 4))
|
||||
w.Write(secSign)
|
||||
|
Loading…
x
Reference in New Issue
Block a user