oicq-icalingua-plus-plus 1.24.69 → 1.24.71

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/index.d.ts CHANGED
@@ -236,6 +236,8 @@ export interface BfaceElem {
236
236
  data: {
237
237
  file: string,
238
238
  text: string
239
+ width?: number,
240
+ height?: number,
239
241
  }
240
242
  }
241
243
 
package/lib/client-ext.js CHANGED
@@ -41,7 +41,7 @@ const allowedCallbackCmds = [
41
41
  "trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Access",
42
42
  "trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish",
43
43
  "trpc.o3.ecdh_access.EcdhAccess.SsoSecureAccess",
44
- "trpc.o3.report.Report.SsoReport",
44
+ //"trpc.o3.report.Report.SsoReport",
45
45
  ];
46
46
 
47
47
  /**
package/lib/device.js CHANGED
@@ -551,6 +551,19 @@ const apk = {
551
551
  ssover: 22,
552
552
  qua: "V1_AND_SQ_9.1.0_7518_YYB_D",
553
553
  },
554
+
555
+ //android phone 9.1.20
556
+ 59: {
557
+ ...DEFAULT_ANDROID_APK_INFO,
558
+ name: "A9.1.20.fa404fa6",
559
+ version: "9.1.20.21395",
560
+ ver: "9.1.20",
561
+ buildtime: 1728390173,
562
+ subid: 537257414,
563
+ sdkver: "6.0.0.2565",
564
+ ssover: 22,
565
+ qua: "V1_AND_SQ_9.1.20_8198_YYB_D",
566
+ },
554
567
  };
555
568
 
556
569
  //apad
@@ -657,6 +670,10 @@ apk[56].subid = 537242114;
657
670
  apk[58] = { ...apk[57] };
658
671
  apk[58].subid = 537244932;
659
672
 
673
+ //apad 9.1.20
674
+ apk[60] = { ...apk[59] };
675
+ apk[60].subid = 537257453;
676
+
660
677
  //ipad
661
678
  apk[5] = { ...apk[1] };
662
679
  apk[5].subid = 537155074;
@@ -221,10 +221,11 @@ async function makeForwardMsg(iterable, dm = false, target = 0) {
221
221
  }
222
222
  break;
223
223
  case "reply":
224
- let user_id, seq, _random, time, source;
224
+ let user_id, seq, _random, time, source, group_id;
225
225
  const parsed = Buffer.from(elem.data.id, "base64");
226
226
  if (elem.data.id.length > 24) {
227
227
  // Group
228
+ group_id = parsed.readUInt32BE(0);
228
229
  user_id = parsed.readUInt32BE(4);
229
230
  seq = parsed.readUInt32BE(8);
230
231
  _random = parsed.readUInt32BE(12);
@@ -247,6 +248,31 @@ async function makeForwardMsg(iterable, dm = false, target = 0) {
247
248
  6: 0,
248
249
  8: {
249
250
  3: common.genMessageUuid(_random)
251
+ },
252
+ 9: {
253
+ 1: {
254
+ 1: user_id,
255
+ 2: 0,
256
+ 3: group_id ? 82 : 9,
257
+ 4: group_id ? 0 : 175,
258
+ 5: seq,
259
+ 6: time,
260
+ 7: 0,
261
+ 9: !group_id ? null : {
262
+ 1: group_id,
263
+ },
264
+ },
265
+ 2: {
266
+ 1: 1,
267
+ 2: 0,
268
+ 3: 0,
269
+ 4: 0,
270
+ },
271
+ 3: {
272
+ 1: {
273
+ 2: source
274
+ }
275
+ }
250
276
  }
251
277
  }
252
278
  });
@@ -328,6 +328,12 @@ class Parser {
328
328
  msg.type = "bface";
329
329
  msg.data.file = elem[4].toHex() + elem[7].toHex() + elem[5];
330
330
  msg.data.text = brief.replace(/[[\]]/g, "");
331
+ try {
332
+ let size = elem[13][1];
333
+ if (Array.isArray(size)) size = size[0];
334
+ msg.data.width = size[1];
335
+ msg.data.height = size[2];
336
+ } catch { }
331
337
  }
332
338
  break;
333
339
  case 4:
package/lib/oicq.js CHANGED
@@ -231,9 +231,9 @@ Client.prototype._register = async function () {
231
231
  Client.prototype._var4 = 0;
232
232
  Client.prototype._nt_hb_var = 0;
233
233
  Client.prototype._runCircleTask = async function () {
234
- if (this._var4++ > 60) {
234
+ if (this._var4++ > 10) {
235
235
  await this._wt.refreshD2();
236
- if (this.config.platform != 2 && this.config.platform != 3)
236
+ if (this.apk.id != "com.tencent.qqlite")
237
237
  this.setOnlineStatus(this.online_status);
238
238
  this._var4 = 0;
239
239
  }
@@ -225,6 +225,7 @@ WtLogin.prototype.qrcodeLogin = async function () {
225
225
  this.t106 = t106;
226
226
  this.device.tgtgt = tgtgt;
227
227
  this.sig.srm_token = t16a;
228
+ this.t10c = tgtgt;
228
229
  this._qrcodeLogin(t16a, t318);
229
230
  } else {
230
231
  throw ERROR_UNKNOWN;
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.69",
5
- "app_version": "1.24.69",
6
- "upday": "2024/11/12",
4
+ "version": "1.24.71",
5
+ "app_version": "1.24.71",
6
+ "upday": "2024/12/2",
7
7
  "protocol_version": "v11",
8
8
  "description": "oicq(https://github.com/takayama-lily/oicq) v1 for Icalingua++",
9
9
  "main": "index.js",