oicq-icalingua-plus-plus 1.24.21 → 1.24.22

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) {
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,8 +1,8 @@
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",
4
+ "version": "1.24.22",
5
+ "app_version": "1.24.22",
6
6
  "upday": "2024/05/29",
7
7
  "protocol_version": "v11",
8
8
  "description": "oicq(https://github.com/takayama-lily/oicq) v1 for Icalingua++",