oicq-icalingua-plus-plus 1.22.1 → 1.22.4
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 +3 -3
- package/index.d.ts +1 -1
- package/lib/client-net.js +1 -1
- package/lib/client.js +1 -1
- package/lib/device.js +12 -12
- package/lib/message/multi.js +4 -4
- package/lib/message/parser.js +3 -0
- package/lib/message/ptt.js +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# oicq-icalingua-plus-plus
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/oicq-plus-plus)
|
|
4
|
-
[](https://www.npmjs.com/package/oicq-plus-plus)
|
|
5
|
-
[](https://nodejs.org)
|
|
3
|
+
[](https://www.npmjs.com/package/oicq-icalingua-plus-plus)
|
|
4
|
+
[](https://www.npmjs.com/package/oicq-icalingua-plus-plus)
|
|
5
|
+
[](https://nodejs.org)
|
|
6
6
|
[](https://discord.gg/gKnU7BARzv)
|
|
7
7
|
|
|
8
8
|
* 由於 [oicq](https://github.com/takayama-lily/oicq) 發布 v2 並停止對oicq v1 的維護,而~~我們比較懶(bushi)~~,先搞個 v1 的分支湊合用下(
|
package/index.d.ts
CHANGED
|
@@ -975,7 +975,7 @@ export class Client extends EventEmitter {
|
|
|
975
975
|
* 制作一个合并转发消息,得到的XmlElem可直接发送
|
|
976
976
|
* @param dm 默认(false)以群模式上传图片,设为true则以私聊模式上传图片
|
|
977
977
|
*/
|
|
978
|
-
makeForwardMsg(fakes: FakeMessage | Iterable<FakeMessage>, dm?: boolean): Promise<Ret<XmlElem>>;
|
|
978
|
+
makeForwardMsg(fakes: FakeMessage | Iterable<FakeMessage>, dm?: boolean, target?: number): Promise<Ret<XmlElem>>;
|
|
979
979
|
|
|
980
980
|
/** 发简易群公告 */
|
|
981
981
|
sendGroupNotice(group_id: number, content: string): Promise<Ret>;
|
package/lib/client-net.js
CHANGED
|
@@ -103,7 +103,7 @@ class Network extends net.Socket {
|
|
|
103
103
|
body = tea.encrypt(body, key);
|
|
104
104
|
return await new Promise((resolve, reject) => {
|
|
105
105
|
const id = setTimeout(reject, 5000);
|
|
106
|
-
https.request("https://configsvr.msf.3g.qq.com/configsvr/serverlist.jsp", { method: "POST" }, (res) => {
|
|
106
|
+
https.request("https://configsvr.msf.3g.qq.com/configsvr/serverlist.jsp?mType=getssolist", { method: "POST" }, (res) => {
|
|
107
107
|
let data = [];
|
|
108
108
|
res.on("error", reject);
|
|
109
109
|
res.on("data", (chunk) => data.push(chunk));
|
package/lib/client.js
CHANGED
|
@@ -375,7 +375,7 @@ class Client extends EventEmitter {
|
|
|
375
375
|
getForwardMsg(id) {
|
|
376
376
|
return this._useProtocol(chat.getForwardMsg, arguments);
|
|
377
377
|
}
|
|
378
|
-
makeForwardMsg(fakes, dm = false) {
|
|
378
|
+
makeForwardMsg(fakes, dm = false, target = 0) {
|
|
379
379
|
return this._useProtocol(multi.makeForwardMsg, arguments);
|
|
380
380
|
}
|
|
381
381
|
|
package/lib/device.js
CHANGED
|
@@ -129,31 +129,31 @@ const apk = {
|
|
|
129
129
|
//android phone
|
|
130
130
|
1: {
|
|
131
131
|
id: "com.tencent.mobileqq",
|
|
132
|
-
name: "A8.
|
|
133
|
-
version: "8.
|
|
134
|
-
ver: "8.
|
|
132
|
+
name: "A8.8.80.7400",
|
|
133
|
+
version: "8.8.80.7400",
|
|
134
|
+
ver: "8.8.80",
|
|
135
135
|
sign: Buffer.from([166, 183, 69, 191, 36, 162, 194, 119, 82, 119, 22, 246, 243, 110, 182, 141]),
|
|
136
|
-
buildtime:
|
|
136
|
+
buildtime: 1640921786,
|
|
137
137
|
appid: 16,
|
|
138
|
-
subid:
|
|
138
|
+
subid: 537113159,
|
|
139
139
|
bitmap: 184024956,
|
|
140
140
|
sigmap: 34869472,
|
|
141
|
-
sdkver: "6.0.0.
|
|
141
|
+
sdkver: "6.0.0.2494",
|
|
142
142
|
},
|
|
143
143
|
|
|
144
144
|
//apad
|
|
145
145
|
2: {
|
|
146
146
|
id: "com.tencent.minihd.qq",
|
|
147
|
-
name: "A5.
|
|
148
|
-
version: "5.
|
|
149
|
-
ver: "5.
|
|
147
|
+
name: "A5.9.3.3468",
|
|
148
|
+
version: "5.9.3.3468",
|
|
149
|
+
ver: "5.9.3",
|
|
150
150
|
sign: Buffer.from([170, 57, 120, 244, 31, 217, 111, 249, 145, 74, 102, 158, 24, 100, 116, 199]),
|
|
151
|
-
buildtime:
|
|
151
|
+
buildtime: 1637427966,
|
|
152
152
|
appid: 16,
|
|
153
|
-
subid:
|
|
153
|
+
subid: 537067382,
|
|
154
154
|
bitmap: 150470524,
|
|
155
155
|
sigmap: 1970400,
|
|
156
|
-
sdkver: "6.0.0.
|
|
156
|
+
sdkver: "6.0.0.2487",
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
159
|
|
package/lib/message/multi.js
CHANGED
|
@@ -51,7 +51,7 @@ function buildFaceElem(id) {
|
|
|
51
51
|
* @this {import("../ref").Client}
|
|
52
52
|
* @param {import("../ref").FakeMessage[]} iterable
|
|
53
53
|
*/
|
|
54
|
-
async function makeForwardMsg(iterable, dm = false) {
|
|
54
|
+
async function makeForwardMsg(iterable, dm = false, target = 0) {
|
|
55
55
|
|
|
56
56
|
if (typeof iterable[Symbol.iterator] !== "function")
|
|
57
57
|
iterable = [iterable];
|
|
@@ -122,17 +122,17 @@ async function makeForwardMsg(iterable, dm = false) {
|
|
|
122
122
|
nodes.push({
|
|
123
123
|
1: {
|
|
124
124
|
1: fake.user_id,
|
|
125
|
-
2: this.uin,
|
|
125
|
+
2: !target ? this.uin : target,
|
|
126
126
|
3: dm ? 166 : 82,
|
|
127
127
|
4: dm ? 11 : null,
|
|
128
128
|
5: seq,
|
|
129
129
|
6: fake.time || common.timestamp(),
|
|
130
130
|
7: common.genMessageUuid(random),
|
|
131
131
|
9: dm ? null : {
|
|
132
|
-
1: this.uin,
|
|
132
|
+
1: !target ? this.uin : target,
|
|
133
133
|
4: fake.nickname,
|
|
134
134
|
},
|
|
135
|
-
14: fake.nickname,
|
|
135
|
+
14: dm ? fake.nickname : null,
|
|
136
136
|
20: {
|
|
137
137
|
1: 0,
|
|
138
138
|
2: random
|
package/lib/message/parser.js
CHANGED
|
@@ -751,6 +751,9 @@ async function parseForwardMsg(resid) {
|
|
|
751
751
|
let user_id = head[1], nickname = "unknown", group_id;
|
|
752
752
|
if (head[14]) {
|
|
753
753
|
nickname = String(head[14]);
|
|
754
|
+
try {
|
|
755
|
+
group_id = head[9][1];
|
|
756
|
+
} catch { }
|
|
754
757
|
} else {
|
|
755
758
|
try {
|
|
756
759
|
nickname = String(head[9][4]);
|
package/lib/message/ptt.js
CHANGED
|
@@ -194,6 +194,7 @@ async function _uploadPtt(target, buf) {
|
|
|
194
194
|
});
|
|
195
195
|
const blob = await this.sendUni("PttStore.GroupPttUp", body);
|
|
196
196
|
const rsp = pb.decode(blob)[5];
|
|
197
|
+
rsp[2] && drop(rsp[2], rsp[3]);
|
|
197
198
|
if (!rsp[4]) {
|
|
198
199
|
const ip = Array.isArray(rsp[5]) ? rsp[5][0] : rsp[5],
|
|
199
200
|
port = Array.isArray(rsp[6]) ? rsp[6][0] : rsp[6];
|
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.22.
|
|
5
|
-
"app_version": "1.22.
|
|
6
|
-
"upday": "2022/05/
|
|
4
|
+
"version": "1.22.4",
|
|
5
|
+
"app_version": "1.22.4",
|
|
6
|
+
"upday": "2022/05/20",
|
|
7
7
|
"protocol_version": "v11",
|
|
8
8
|
"description": "oicq(https://github.com/takayama-lily/oicq) v1 for Icalingua++",
|
|
9
9
|
"main": "index.js",
|