Merge pull request #360 from cnxysoft/upmain

fix: bugs
This commit is contained in:
Alen 2024-09-13 17:30:23 +08:00 committed by GitHub
commit 5f80058f70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

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,

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);
}
}
}