From b9d1d847161588232d3d7faec0bef8c479789cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Tue, 11 Jun 2024 15:20:11 +0800 Subject: [PATCH] release: v1.5.4 --- docs/changelogs/CHANGELOG.v1.5.4.md | 11 +++++++++++ docs/changelogs/{ => old}/CHANGELOG.v1.5.3.md | 0 package.json | 2 +- src/onebot11/constructor.ts | 2 +- src/onebot11/version.ts | 2 +- src/webui/ui/NapCat.ts | 2 +- static/assets/renderer.js | 2 +- 7 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 docs/changelogs/CHANGELOG.v1.5.4.md rename docs/changelogs/{ => old}/CHANGELOG.v1.5.3.md (100%) diff --git a/docs/changelogs/CHANGELOG.v1.5.4.md b/docs/changelogs/CHANGELOG.v1.5.4.md new file mode 100644 index 00000000..46830850 --- /dev/null +++ b/docs/changelogs/CHANGELOG.v1.5.4.md @@ -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) \ No newline at end of file diff --git a/docs/changelogs/CHANGELOG.v1.5.3.md b/docs/changelogs/old/CHANGELOG.v1.5.3.md similarity index 100% rename from docs/changelogs/CHANGELOG.v1.5.3.md rename to docs/changelogs/old/CHANGELOG.v1.5.3.md diff --git a/package.json b/package.json index becbf626..2bf92fd1 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/onebot11/constructor.ts b/src/onebot11/constructor.ts index 5e735e74..13685303 100644 --- a/src/onebot11/constructor.ts +++ b/src/onebot11/constructor.ts @@ -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; diff --git a/src/onebot11/version.ts b/src/onebot11/version.ts index 4fb56215..0c3d52a8 100644 --- a/src/onebot11/version.ts +++ b/src/onebot11/version.ts @@ -1 +1 @@ -export const version = '1.5.3'; +export const version = '1.5.4'; diff --git a/src/webui/ui/NapCat.ts b/src/webui/ui/NapCat.ts index 7c7137eb..606b4efe 100644 --- a/src/webui/ui/NapCat.ts +++ b/src/webui/ui/NapCat.ts @@ -29,7 +29,7 @@ async function onSettingWindowCreated(view: Element) { SettingItem( 'Napcat', undefined, - SettingButton('V1.5.3', 'napcat-update-button', 'secondary') + SettingButton('V1.5.4', 'napcat-update-button', 'secondary') ), ]), SettingList([ diff --git a/static/assets/renderer.js b/static/assets/renderer.js index d36cd4f7..c1497bf1 100644 --- a/static/assets/renderer.js +++ b/static/assets/renderer.js @@ -167,7 +167,7 @@ async function onSettingWindowCreated(view) { SettingItem( 'Napcat', void 0, - SettingButton("V1.5.3", "napcat-update-button", "secondary") + SettingButton("V1.5.4", "napcat-update-button", "secondary") ) ]), SettingList([