release: 1.5.8

This commit is contained in:
手瓜一十雪 2024-06-19 23:34:09 +08:00
parent b863896249
commit ae0277f33c
6 changed files with 12 additions and 9 deletions

View File

@ -3,11 +3,12 @@
QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-24568 QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-24568
## 修复与优化 ## 修复与优化
* 修复文件残留问题 * 修复视频文件残留问题
* 重构 getcookies接口 支持大部分常见域 * 重构 getcookies接口 支持大部分常见域
## 新增与调整 ## 新增与调整
* 日志清理 * 日志大小限制
* 支持QQ音乐 图文卡片 * 支持 QQ音乐 卡片 无签名支持时 启用内置方法(缺点没有封面 限速1min/条)
* 支持Window X86-32机器 * 支持Window X86-32机器
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api) 新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

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

View File

@ -134,8 +134,10 @@ const _handlers: {
const uri2LocalRes = await uri2local(thumb); const uri2LocalRes = await uri2local(thumb);
if (uri2LocalRes.success) thumb = uri2LocalRes.path; if (uri2LocalRes.success) thumb = uri2LocalRes.path;
} }
let videoEle = await SendMsgElementConstructor.video(path, fileName, thumb);
return SendMsgElementConstructor.video(path, fileName, thumb); //未测试
context.deleteAfterSentFiles.push(videoEle.videoElement.filePath);
return videoEle;
}, },
[OB11MessageDataType.miniapp]: async ({ data: any }) => SendMsgElementConstructor.miniapp(), [OB11MessageDataType.miniapp]: async ({ data: any }) => SendMsgElementConstructor.miniapp(),

View File

@ -1 +1 @@
export const version = '1.5.7'; export const version = '1.5.8';

View File

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

View File

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