oicq-icalingua-plus-plus 1.26.21 → 1.26.23
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/README.md +1 -1
- package/lib/message/face.js +8 -0
- package/lib/message/parser.js +3 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
* 本库为 [oicq](https://github.com/takayama-lily/oicq) v1 的第三方维护版,目的是为了使 Icalingua++ 能正常工作。
|
|
9
9
|
* oicq-icalingua-plus-plus 的诞生离不开 OICQ 原作者 [takayama-lily](https://github.com/takayama-lily) 与其他贡献者的贡献!
|
|
10
|
-
* QQ(安卓)协议基于Node.js的实现,支持最低node版本为
|
|
10
|
+
* QQ(安卓)协议基于Node.js的实现,支持最低node版本为 v14
|
|
11
11
|
* 若你不熟悉Node.js或不会组织代码,可通过 [template](https://github.com/takayama-lily/oicq-template) 创建一个简单的应用程序
|
|
12
12
|
* [API参考文档](https://github.com/takayama-lily/oicq/wiki/91.API%E6%96%87%E6%A1%A3) / [事件参考文档](https://github.com/takayama-lily/oicq/wiki/92.%E4%BA%8B%E4%BB%B6%E6%96%87%E6%A1%A3) / [wiki列表](https://github.com/takayama-lily/oicq/wiki)
|
|
13
13
|
|
package/lib/message/face.js
CHANGED
|
@@ -403,6 +403,14 @@ const map = {
|
|
|
403
403
|
482: "/热化了",
|
|
404
404
|
483: "/略",
|
|
405
405
|
484: "/比爱心",
|
|
406
|
+
485: "/开学啦",
|
|
407
|
+
486: "/开学啦2",
|
|
408
|
+
487: "/开学啦3",
|
|
409
|
+
488: "/开学大吉",
|
|
410
|
+
489: "/知识增加",
|
|
411
|
+
490: "/能送我吗",
|
|
412
|
+
491: "/自信学霸",
|
|
413
|
+
492: "/让我细品",
|
|
406
414
|
};
|
|
407
415
|
|
|
408
416
|
const FACE_OLD_BUF = Buffer.from([0x00, 0x01, 0x00, 0x04, 0x52, 0xCC, 0xF5, 0xD0]);
|
package/lib/message/parser.js
CHANGED
|
@@ -14,6 +14,7 @@ const { buildImageFileParam, groupNTPicDown, offNTPicDown, checkImgUrl, getNTPic
|
|
|
14
14
|
const { Gfs, getC2CFileUrl, getSyncDeviceFileUrl } = require("./file");
|
|
15
15
|
const { getVideoUrl, getPttUrl, getOffNTPttUrl, getGroupNTPttUrl, getOffNTVideoUrl, getGroupNTVideoUrl } = require("./ptt");
|
|
16
16
|
const { genC2CMessageId, genGroupMessageId, timestamp, parseFunString, code2uin, genRandom, unzip } = require("../common");
|
|
17
|
+
const { uid2uin } = require("../core/friendlist");
|
|
17
18
|
|
|
18
19
|
function escapeCQInside(s) {
|
|
19
20
|
if (s === "&") return "&";
|
|
@@ -759,7 +760,8 @@ class Parser {
|
|
|
759
760
|
text: ""
|
|
760
761
|
}
|
|
761
762
|
};
|
|
762
|
-
let seq = elem[1], user_id = elem[2]
|
|
763
|
+
let seq = elem[1], user_id = elem[2], user_uid = elem[6];
|
|
764
|
+
if (!user_id && user_uid) user_id = await uid2uin.call(this.c, user_uid); // 某些第三方实现不塞uin只塞uid
|
|
763
765
|
let replyed = elem[5] ? (Array.isArray(elem[5]) ? elem[5] : [elem[5]]) : [];
|
|
764
766
|
let original = elem[9];
|
|
765
767
|
if (this.gid) {
|
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.26.
|
|
5
|
-
"app_version": "1.26.
|
|
6
|
-
"upday": "2026/
|
|
4
|
+
"version": "1.26.23",
|
|
5
|
+
"app_version": "1.26.23",
|
|
6
|
+
"upday": "2026/09/03",
|
|
7
7
|
"protocol_version": "v11",
|
|
8
8
|
"description": "oicq(https://github.com/takayama-lily/oicq) v1 for Icalingua++",
|
|
9
9
|
"main": "index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"mocha": "./node_modules/.bin/_mocha"
|
|
16
16
|
},
|
|
17
17
|
"engines": {
|
|
18
|
-
"node": ">=
|
|
18
|
+
"node": ">= v14"
|
|
19
19
|
},
|
|
20
20
|
"repository": "https://github.com/Icalingua-plus-plus/oicq-icalingua-plus-plus.git",
|
|
21
21
|
"author": "The Icalingua++ Authors",
|