oicq-icalingua-plus-plus 1.22.3 → 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/lib/client-net.js +1 -1
- package/lib/message/multi.js +1 -1
- package/lib/message/parser.js +3 -0
- package/lib/message/ptt.js +1 -0
- package/package.json +3 -3
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/message/multi.js
CHANGED
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",
|