fix(core): finalize c2c file upload so the recipient can download (#157)
Private (c2c) file sends uploaded the bytes (apply 0xE37_1700 + Highway) and PbSendMsg returned ok, but the receiver saw "文件传输失败": the message carried only FileExtra.file (metadata) and not the server-issued download routing. Group files use a different element, hence c2c-only. Port NapCat's upload→finalize→send sequence: - add 0xE37_800 (FinalizeOfflineFile) OIDB service, run after the Highway PUT to fetch the download metadata (field30) - extend FileExtra with field6 (PrivateFileExtra.field2) and populate it from that metadata in sendC2cFile; covers both the url-upload and the file_id-resend send paths (both funnel through sendC2cFile) Tests: byte-oracle locks the 0xE37_800 request + FileExtra.field6 tags; core routing test now asserts finalize runs and field6 is populated. Needs real-machine verification (send a private file, confirm download).
This commit is contained in:
7 files changed
+325
-3
No files matched your search
@@ -344,6 +344,10 @@
|
||||
"types": "./src/oidb-services/group-file/upload-private-file-request.ts",
|
||||
"default": "./src/oidb-services/group-file/upload-private-file-request.ts"
|
||||
},
|
||||
"./oidb-services/group-file/finalize-offline-file": {
|
||||
"types": "./src/oidb-services/group-file/finalize-offline-file.ts",
|
||||
"default": "./src/oidb-services/group-file/finalize-offline-file.ts"
|
||||
},
|
||||
"./oidb-services/group-file/list-group-files-page": {
|
||||
"types": "./src/oidb-services/group-file/list-group-files-page.ts",
|
||||
"default": "./src/oidb-services/group-file/list-group-files-page.ts"
|
||||
|
||||
Reference in new issue
Block a user