oicq-icalingua-plus-plus 1.26.2 → 1.26.3

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
@@ -1165,6 +1165,9 @@ export class Client extends EventEmitter {
1165
1165
  /** 踢出已登录的设备 */
1166
1166
  delDevLoginInfo(flag: string): Promise<Ret>;
1167
1167
 
1168
+ /** 根据fileid获取私聊文件URL */
1169
+ getC2CFileUrl(fileid: string): Promise<Ret<string>>;
1170
+
1168
1171
  /** 清除 image 和 record 文件夹下的缓存文件 */
1169
1172
  cleanCache(type?: "image" | "record"): Promise<Ret>;
1170
1173
 
package/lib/client.js CHANGED
@@ -22,7 +22,7 @@ const { WtLogin } = require("./wtlogin/wt");
22
22
  const chat = require("./message/chat");
23
23
  const multi = require("./message/multi");
24
24
  const image = require("./message/image");
25
- const { Gfs } = require("./message/file");
25
+ const { Gfs, getC2CFileUrlApi } = require("./message/file");
26
26
  const { getErrorMessage, TimeoutError } = require("./exception");
27
27
 
28
28
  function buildApiRet(retcode, data = null, error = null) {
@@ -630,7 +630,7 @@ class Client extends EventEmitter {
630
630
  return this._useProtocol(chat.preloadImages, arguments);
631
631
  }
632
632
 
633
- getNTPicURLbyFileid() {
633
+ getNTPicURLbyFileid(fileid) {
634
634
  return this._useProtocol(image.getNTPicURLbyFileidApi, arguments);
635
635
  }
636
636
 
@@ -642,8 +642,8 @@ class Client extends EventEmitter {
642
642
  return this._useProtocol(nessy.delDevLoginInfo, arguments);
643
643
  }
644
644
 
645
- getC2CFileUrl() {
646
- return this._useProtocol(image.getC2CFileUrlApi, arguments);
645
+ getC2CFileUrl(fileid) {
646
+ return this._useProtocol(getC2CFileUrlApi, arguments);
647
647
  }
648
648
 
649
649
  ///////////////////////////////////////////////////
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "oicq-icalingua-plus-plus",
3
3
  "app_name": "oicq-icalingua-plus-plus",
4
- "version": "1.26.2",
5
- "app_version": "1.26.2",
4
+ "version": "1.26.3",
5
+ "app_version": "1.26.3",
6
6
  "upday": "2026/06/28",
7
7
  "protocol_version": "v11",
8
8
  "description": "oicq(https://github.com/takayama-lily/oicq) v1 for Icalingua++",
@@ -21,23 +21,23 @@
21
21
  "author": "The Icalingua++ Authors",
22
22
  "license": "MPL-2.0",
23
23
  "dependencies": {
24
- "axios": "^1.2.1",
25
- "jsqr": "^1.4.0",
26
- "log4js": "^6.3.0",
27
- "long": "^4.0.0",
28
- "pngjs": "^6.0.0",
29
- "probe-image-size": "^7.2.1",
30
- "qrcode-terminal": "^0.12.0",
31
- "ws": "^7.5.5"
24
+ "axios": "1.14.0",
25
+ "jsqr": "1.4.0",
26
+ "log4js": "6.9.1",
27
+ "long": "4.0.0",
28
+ "pngjs": "6.0.0",
29
+ "probe-image-size": "7.2.3",
30
+ "qrcode-terminal": "0.12.0",
31
+ "ws": "7.5.11"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^16.7.13",
35
- "@types/probe-image-size": "^7.0.1",
36
- "@types/ws": "^7.4.7",
37
- "chai": "^4.3.4",
38
- "mocha": "^8.4.0",
39
- "mockjs": "^1.1.0",
40
- "protobufjs": "^6.11.2"
35
+ "@types/probe-image-size": "7.0.1",
36
+ "@types/ws": "7.4.7",
37
+ "chai": "4.5.0",
38
+ "mocha": "8.4.0",
39
+ "mockjs": "1.1.0",
40
+ "protobufjs": "6.11.6"
41
41
  },
42
42
  "files": [
43
43
  "/bin",