oicq-icalingua-plus-plus 1.24.75 → 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/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;
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.75",
5
- "app_version": "1.24.75",
6
- "upday": "2024/12/21",
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",