oicq-icalingua-plus-plus 1.23.39 → 1.23.41

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.
@@ -21,7 +21,7 @@ const { getQIMEI } = require("../qimei");
21
21
 
22
22
  WtLogin.prototype.passwordLogin = async function () {
23
23
  if (this.c.config.platform !== 5 && this.apk.ssover > 12 && (!this.device.qimei16 || !this.device.qimei36)) {
24
- const qimei = await getQIMEI(this);
24
+ const qimei = await getQIMEI(this.c);
25
25
  // 缓存一下,理论上每次获取是一样的
26
26
  this.device.qimei16 = qimei.q16;
27
27
  this.device.qimei36 = qimei.q36;
@@ -343,8 +343,9 @@ const tlv_map = {
343
343
  salt.writeTlv(Buffer.from(this.apk.sdkver))
344
344
  salt.writeU32(subCmd)
345
345
  }
346
- const t544 = sign((new Date()).getTime(), salt.read());
347
- this.logger.debug("tlv544 salt: " + salt.read().toString("hex"));
346
+ const _salt = salt.read()
347
+ const t544 = sign((new Date()).getTime(), _salt);
348
+ this.logger.debug("tlv544 salt: " + _salt.toString("hex"));
348
349
  this.logger.debug("tlv544 result: " + t544.toString("hex"));
349
350
  return new Writer().writeBytes(t544);
350
351
  }
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.23.39",
5
- "app_version": "1.23.39",
6
- "upday": "2023/05/07",
4
+ "version": "1.23.41",
5
+ "app_version": "1.23.41",
6
+ "upday": "2023/05/08",
7
7
  "protocol_version": "v11",
8
8
  "description": "oicq(https://github.com/takayama-lily/oicq) v1 for Icalingua++",
9
9
  "main": "index.js",