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

fix: update qidian protocol version

This commit is contained in:
Mrs4s 2022-05-10 04:03:08 +08:00
parent 0f43de570f
commit 27c591e3cb
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7
2 changed files with 8 additions and 8 deletions

View File

@ -92,14 +92,14 @@ func (i Protocol) Version() *AppVersion {
case QiDian: case QiDian:
return &AppVersion{ return &AppVersion{
ApkId: "com.tencent.qidian", ApkId: "com.tencent.qidian",
AppId: 537061386, AppId: 537096038,
SubAppId: 537036590, SubAppId: 537036590,
SortVersionName: "3.8.6", SortVersionName: "5.0.0",
BuildTime: 1556628836, BuildTime: 1630062176,
ApkSign: []byte{160, 30, 236, 171, 133, 233, 227, 186, 43, 15, 106, 21, 140, 133, 92, 41}, ApkSign: []byte{160, 30, 236, 171, 133, 233, 227, 186, 43, 15, 106, 21, 140, 133, 92, 41},
SdkVersion: "6.0.0.2365", SdkVersion: "6.0.0.2484",
SSOVersion: 5, SSOVersion: 18,
MiscBitmap: 49807228, MiscBitmap: 184024956,
SubSigmap: 66560, SubSigmap: 66560,
MainSigMap: 34869472, MainSigMap: 34869472,
Protocol: i, Protocol: i,

View File

@ -38,7 +38,7 @@ func (c *QQClient) getQiDianAddressDetailList() ([]*FriendInfo, error) {
Timestamp2: proto.Uint64(0), Timestamp2: proto.Uint64(0),
}, },
} }
rspData, err := c.bigDataRequest(1305, req) rspData, err := c.bigDataRequest(0x519, req)
if err != nil { if err != nil {
return nil, errors.Wrap(err, "request error") return nil, errors.Wrap(err, "request error")
} }
@ -116,7 +116,7 @@ func (c *QQClient) bigDataRequest(subCmd uint32, req proto.Message) ([]byte, err
Command: proto.Uint32(1791), Command: proto.Uint32(1791),
SubCommand: &subCmd, SubCommand: &subCmd,
Seq: proto.Uint32(uint32(c.nextHighwayApplySeq())), Seq: proto.Uint32(uint32(c.nextHighwayApplySeq())),
Version: proto.Uint32(386), // todo: short version convert Version: proto.Uint32(500), // todo: short version convert
Flag: proto.Uint32(1), Flag: proto.Uint32(1),
CompressType: proto.Uint32(0), CompressType: proto.Uint32(0),
ErrorCode: proto.Uint32(0), ErrorCode: proto.Uint32(0),