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.
- package/lib/message/chat.js +2 -2
- package/lib/message/face.js +4 -0
- package/lib/service.js +1 -1
- package/package.json +3 -3
package/lib/message/chat.js
CHANGED
|
@@ -226,10 +226,10 @@ async function sendFile(user_id, file, filename, callback) {
|
|
|
226
226
|
200: 1
|
|
227
227
|
})
|
|
228
228
|
try {
|
|
229
|
-
await
|
|
229
|
+
await highwayHttpUpload.call(this, filestream, {
|
|
230
230
|
md5: filemd5,
|
|
231
231
|
size: filesize,
|
|
232
|
-
|
|
232
|
+
cmdid: 69, // CmdID.OfflineFile,
|
|
233
233
|
ext, callback
|
|
234
234
|
})
|
|
235
235
|
} catch (e) {
|
package/lib/message/face.js
CHANGED
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
|
-
//
|
|
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.
|
|
5
|
-
"app_version": "1.24.
|
|
6
|
-
"upday": "2024/
|
|
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",
|