oicq-icalingua-plus-plus 1.24.21 → 1.24.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.
@@ -226,10 +226,10 @@ async function sendFile(user_id, file, filename, callback) {
226
226
  200: 1
227
227
  })
228
228
  try {
229
- await highwayUploadStream.call(this, filestream, {
229
+ await highwayHttpUpload.call(this, filestream, {
230
230
  md5: filemd5,
231
231
  size: filesize,
232
- cmd: 69, // CmdID.OfflineFile,
232
+ cmdid: 69, // CmdID.OfflineFile,
233
233
  ext, callback
234
234
  })
235
235
  } catch (e) {
@@ -343,6 +343,10 @@ const map = {
343
343
  411: "/一起嗨",
344
344
  412: "/开心",
345
345
  413: "/摇起来",
346
+
347
+ 415: "/划龙舟",
348
+ 416: "/中龙舟",
349
+ 417: "/大龙舟",
346
350
  };
347
351
 
348
352
  const FACE_OLD_BUF = Buffer.from([0x00, 0x01, 0x00, 0x04, 0x52, 0xCC, 0xF5, 0xD0]);
package/lib/service.js CHANGED
@@ -172,7 +172,7 @@ function highwayUploadStream(readable, obj, ip, port) {
172
172
  }
173
173
 
174
174
  const __ = Buffer.from([41])
175
- // 不想优化这个了所以把私聊文件换成了tcp上传
175
+ // TODO: 优化内存占用
176
176
  function highwayHttpUpload(readable, obj) {
177
177
  const agent = new http.Agent({ maxSockets: 10 })
178
178
  const ip = this.storage.ip
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.24.21",
5
- "app_version": "1.24.21",
6
- "upday": "2024/05/29",
4
+ "version": "1.24.23",
5
+ "app_version": "1.24.23",
6
+ "upday": "2024/06/09",
7
7
  "protocol_version": "v11",
8
8
  "description": "oicq(https://github.com/takayama-lily/oicq) v1 for Icalingua++",
9
9
  "main": "index.js",