Skip to content

Commit

Permalink
release: v1.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Jun 11, 2024
1 parent 64b2d54 commit b9d1d84
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions docs/changelogs/CHANGELOG.v1.5.4.md
Original file line number Diff line number Diff line change
@@ -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)
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/onebot11/constructor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/onebot11/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '1.5.3';
export const version = '1.5.4';
2 changes: 1 addition & 1 deletion src/webui/ui/NapCat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down
2 changes: 1 addition & 1 deletion static/assets/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit b9d1d84

Please sign in to comment.