oicq-icalingua-plus-plus 1.24.74 → 1.24.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client-ext.js +7 -3
- package/lib/oicq.js +0 -2
- package/lib/wtlogin/login-qrcode.js +2 -2
- package/lib/wtlogin/wt.js +2 -2
- package/package.json +3 -3
package/lib/client-ext.js
CHANGED
|
@@ -648,9 +648,13 @@ Client.prototype.getSign = async function(cmd, body, seq_id = this.seq_id, retry
|
|
|
648
648
|
if (data.data.requestCallback && data.data.requestCallback.length > 0) {
|
|
649
649
|
// 成功上线register后再发送SSO包
|
|
650
650
|
unsendSso.push.apply(unsendSso, data.data.requestCallback);
|
|
651
|
-
this.
|
|
652
|
-
|
|
653
|
-
}
|
|
651
|
+
if (this.isOnline()) {
|
|
652
|
+
setTimeout(() => this.refreshQSignToken(), 100);
|
|
653
|
+
} else {
|
|
654
|
+
this.once("internal.registered", async () => {
|
|
655
|
+
await this.refreshQSignToken();
|
|
656
|
+
});
|
|
657
|
+
}
|
|
654
658
|
}
|
|
655
659
|
return Buffer.from(pb.encode({
|
|
656
660
|
1: Buffer.from(data.data.sign, "hex"),
|
package/lib/oicq.js
CHANGED
|
@@ -386,8 +386,6 @@ async function parseSSO(buf) {
|
|
|
386
386
|
const retmsg_len = buf.readInt32BE(12);
|
|
387
387
|
const retmsg = String(buf.slice(16, 16 + retmsg_len - 4));
|
|
388
388
|
const error = new Error("unsuccessful retcode: " + retcode + " retmsg: " + retmsg + " seq: " + seq);
|
|
389
|
-
if (retcode === -10008) // need A2 and D2
|
|
390
|
-
await this._wt.register();
|
|
391
389
|
if (this.handlers.has(seq))
|
|
392
390
|
this.handlers.get(seq)(null, error);
|
|
393
391
|
throw error;
|
|
@@ -36,7 +36,7 @@ WtLogin.prototype._buildTransEmpPacket = async function (cmdid, head, body, seq
|
|
|
36
36
|
.writeU8(3)
|
|
37
37
|
.writeU16(0)
|
|
38
38
|
.writeU16(50)
|
|
39
|
-
.writeU32(
|
|
39
|
+
.writeU32(seq)
|
|
40
40
|
.writeU64(0)
|
|
41
41
|
.writeBytes(body)
|
|
42
42
|
.writeU8(3)
|
|
@@ -82,7 +82,7 @@ WtLogin.prototype._buildTransEmpPacket = async function (cmdid, head, body, seq
|
|
|
82
82
|
.writeBytes(tea.encrypt(
|
|
83
83
|
new Writer()
|
|
84
84
|
.writeWithLength(
|
|
85
|
-
new Writer().writeU32(
|
|
85
|
+
new Writer().writeU32(seq)
|
|
86
86
|
.writeU32(this.apk.subid)
|
|
87
87
|
.writeU32(this.apk.subid)
|
|
88
88
|
.writeBytes(BUF_UNKNOWN)
|
package/lib/wtlogin/wt.js
CHANGED
|
@@ -370,8 +370,8 @@ class WtLogin {
|
|
|
370
370
|
3: 53,
|
|
371
371
|
4: timestamp(),
|
|
372
372
|
});
|
|
373
|
-
const pkt = await this.c.sendUni("trpc.qq_new_tech.status_svc.StatusService.SsoHeartBeat", body);
|
|
374
|
-
return pkt;
|
|
373
|
+
const pkt = await this.c.sendUni("trpc.qq_new_tech.status_svc.StatusService.SsoHeartBeat", body).catch(NOOP);
|
|
374
|
+
return !!pkt && pkt.length > 0;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
async syncTimeDiff() {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oicq-icalingua-plus-plus",
|
|
3
3
|
"app_name": "oicq-icalingua-plus-plus",
|
|
4
|
-
"version": "1.24.
|
|
5
|
-
"app_version": "1.24.
|
|
6
|
-
"upday": "2024/12/
|
|
4
|
+
"version": "1.24.76",
|
|
5
|
+
"app_version": "1.24.76",
|
|
6
|
+
"upday": "2024/12/22",
|
|
7
7
|
"protocol_version": "v11",
|
|
8
8
|
"description": "oicq(https://github.com/takayama-lily/oicq) v1 for Icalingua++",
|
|
9
9
|
"main": "index.js",
|