Merge pull request #360 from cnxysoft/upmain

fix: bugs
This commit is contained in:
Alen authored and GitHub committed 2024-09-13 17:30:23 +08:00
commit a136b2957d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -201,7 +201,7 @@ export class NTQQFileApi {
elementType: ElementType.VIDEO,
elementId: '',
videoElement: {
fileName: fileName || _fileName,
fileName: (fileName || _fileName).replace(/\.[^/.]+$/, '.mp4'),
filePath: path,
videoMd5: md5,
thumbMd5,
+1 -1
View File
@@ -73,7 +73,7 @@ export default class GoCQHTTPDownloadFile extends BaseAction<Payload, FileRespon
headers[headerItem] = '';
} else {
const key = headerItem.substring(0, spilt);
headers[key] = headerItem.substring(0, spilt + 1);
headers[key] = headerItem.substring(spilt + 1);
}
}
}