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 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));
@@ -132,7 +132,7 @@ async function makeForwardMsg(iterable, dm = false, target = 0) {
132
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
@@ -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]);
@@ -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.3",
5
- "app_version": "1.22.3",
6
- "upday": "2022/05/04",
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",