mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
fix err.
This commit is contained in:
parent
f5ba6391e7
commit
83f2eb02e6
@ -1018,3 +1018,7 @@ func decodeAppInfoResponse(_ *QQClient, _ uint16, payload []byte) (interface{},
|
|||||||
}
|
}
|
||||||
return rsp.AppInfo, nil
|
return rsp.AppInfo, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ignoreDecoder(_ *QQClient, _ uint16, _ []byte) (interface{}, error) {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
@ -13,7 +13,10 @@ import (
|
|||||||
func init() {
|
func init() {
|
||||||
decoders["StatSvc.GetDevLoginInfo"] = decodeDevListResponse
|
decoders["StatSvc.GetDevLoginInfo"] = decodeDevListResponse
|
||||||
decoders["StatSvc.SvcReqMSFLoginNotify"] = decodeLoginNotifyPacket
|
decoders["StatSvc.SvcReqMSFLoginNotify"] = decodeLoginNotifyPacket
|
||||||
decoders["RegPrxySvc.getOffMsg"] = decodeOfflineMsgResponse
|
decoders["RegPrxySvc.getOffMsg"] = ignoreDecoder
|
||||||
|
decoders["RegPrxySvc.GetMsgV2"] = ignoreDecoder
|
||||||
|
decoders["RegPrxySvc.PbGetMsg"] = ignoreDecoder
|
||||||
|
decoders["RegPrxySvc.NoticeEnd"] = ignoreDecoder
|
||||||
decoders["RegPrxySvc.PushParam"] = decodePushParamPacket
|
decoders["RegPrxySvc.PushParam"] = decodePushParamPacket
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,9 +40,8 @@ func (c *QQClient) GetAllowedClients() ([]*OtherClientInfo, error) {
|
|||||||
|
|
||||||
// RefreshClientStatus 刷新客户端状态
|
// RefreshClientStatus 刷新客户端状态
|
||||||
func (c *QQClient) RefreshStatus() error {
|
func (c *QQClient) RefreshStatus() error {
|
||||||
_, pkt := c.buildGetOfflineMsgRequest()
|
_, err := c.sendAndWait(c.buildGetOfflineMsgRequest())
|
||||||
c.send(pkt)
|
return err
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// StatSvc.GetDevLoginInfo
|
// StatSvc.GetDevLoginInfo
|
||||||
@ -143,15 +145,6 @@ func decodeDevListResponse(_ *QQClient, _ uint16, payload []byte) (interface{},
|
|||||||
return nil, errors.New("not any device")
|
return nil, errors.New("not any device")
|
||||||
}
|
}
|
||||||
|
|
||||||
// RegPrxySvc.getOffMsg
|
|
||||||
func decodeOfflineMsgResponse(c *QQClient, _ uint16, payload []byte) (interface{}, error) {
|
|
||||||
/*
|
|
||||||
request := &jce.RequestPacket{}
|
|
||||||
request.ReadFrom(jce.NewJceReader(payload))
|
|
||||||
*/
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// RegPrxySvc.PushParam
|
// RegPrxySvc.PushParam
|
||||||
func decodePushParamPacket(c *QQClient, _ uint16, payload []byte) (interface{}, error) {
|
func decodePushParamPacket(c *QQClient, _ uint16, payload []byte) (interface{}, error) {
|
||||||
request := &jce.RequestPacket{}
|
request := &jce.RequestPacket{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user