Skip to content

Commit 67d2e08

Browse files
committed
fix: 修复扫码无法登录
1 parent 02c4c3c commit 67d2e08

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

client/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (c *QQClient) FetchQRCode(size, margin, ecLevel uint32) ([]byte, string, er
7979
WriteU64(0).
8080
WriteU8(0).
8181
WriteTLV(
82-
tlv.T16(c.Version().AppID, c.Version().SubAppID,
82+
tlv.T16(c.Version().AppID, c.Version().AppIDQrcode,
8383
utils.MustParseHexStr(c.Device().GUID), c.Version().PTVersion, c.Version().PackageName),
8484
tlv.T1b(0, 0, size, margin, 72, ecLevel, 2),
8585
tlv.T1d(c.Version().MiscBitmap),

client/packets/tlv/qrcode.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ func T11(unusualSign []byte) []byte {
1111
Pack(0x11)
1212
}
1313

14-
func T16(appid, subAppid int, guid []byte, ptVersion, packageName string) []byte {
14+
func T16(appid, appidQrcode int, guid []byte, ptVersion, packageName string) []byte {
1515
return binary.NewBuilder().
1616
WriteU32(0).
1717
WriteU32(uint32(appid)).
18-
WriteU32(uint32(subAppid)).
18+
WriteU32(uint32(appidQrcode)).
1919
WriteBytes(guid).
2020
WritePacketString(packageName, "u16", false).
2121
WritePacketString(ptVersion, "u16", false).

client/sign/http.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func init() {
2525
"trpc.o3.ecdh_access.EcdhAccess.SsoSecureAccess",
2626
"trpc.o3.report.Report.SsoReport",
2727
"MessageSvc.PbSendMsg",
28-
//"wtlogin.trans_emp",
28+
"wtlogin.trans_emp",
2929
"wtlogin.login",
3030
//"trpc.login.ecdh.EcdhService.SsoKeyExchange",
3131
"trpc.login.ecdh.EcdhService.SsoNTLoginPasswordLogin",

0 commit comments

Comments
 (0)