release: v1.5.4

This commit is contained in:
手瓜一十雪 2024-06-11 15:20:11 +08:00
parent 64b2d547ce
commit b9d1d84716
7 changed files with 16 additions and 5 deletions

View File

@ -0,0 +1,11 @@
# v1.5.4
QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-23568
## 修复与优化
* 紧急修复视频与文件问题
## 新增与调整
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@ -2,7 +2,7 @@
"name": "napcat",
"private": true,
"type": "module",
"version": "1.5.3",
"version": "1.5.4",
"scripts": {
"watch:dev": "vite --mode development",
"watch:prod": "vite --mode production",

View File

@ -190,7 +190,7 @@ export class OB11Constructor {
else if (element.videoElement || element.fileElement) {
const videoOrFileElement = element.videoElement || element.fileElement;
const ob11MessageDataType = element.videoElement ? OB11MessageDataType.video : OB11MessageDataType.file;
let videoDownUrl = await NTQQFileApi.getVideoUrl(msg, element);
let videoDownUrl = element.videoElement ? await NTQQFileApi.getVideoUrl(msg, element) : videoOrFileElement.filePath;
message_data['type'] = ob11MessageDataType;
message_data['data']['file'] = videoOrFileElement.fileName;
message_data['data']['path'] = videoDownUrl;

View File

@ -1 +1 @@
export const version = '1.5.3';
export const version = '1.5.4';

View File

@ -29,7 +29,7 @@ async function onSettingWindowCreated(view: Element) {
SettingItem(
'<span id="napcat-update-title">Napcat</span>',
undefined,
SettingButton('V1.5.3', 'napcat-update-button', 'secondary')
SettingButton('V1.5.4', 'napcat-update-button', 'secondary')
),
]),
SettingList([

View File

@ -167,7 +167,7 @@ async function onSettingWindowCreated(view) {
SettingItem(
'<span id="napcat-update-title">Napcat</span>',
void 0,
SettingButton("V1.5.3", "napcat-update-button", "secondary")
SettingButton("V1.5.4", "napcat-update-button", "secondary")
)
]),
SettingList([