From 7f9998281090474220da79e3e52f15408f214fa6 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: Mon, 3 Jun 2024 16:49:08 +0800 Subject: [PATCH] release: v1.4.9 --- docs/changelogs/CHANGELOG.v1.4.9.md | 11 +++++++++++ src/onebot11/action/group/SetGroupAddRequest.ts | 2 +- src/onebot11/version.ts | 2 +- src/webui/ui/NapCat.ts | 2 +- static/assets/renderer.js | 2 +- 5 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 docs/changelogs/CHANGELOG.v1.4.9.md diff --git a/docs/changelogs/CHANGELOG.v1.4.9.md b/docs/changelogs/CHANGELOG.v1.4.9.md new file mode 100644 index 000000000..7ace60667 --- /dev/null +++ b/docs/changelogs/CHANGELOG.v1.4.9.md @@ -0,0 +1,11 @@ +# v1.4.9 + +QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361 + +## 修复与优化 +* 修复接口调用问题 接口标准化 API:set_group_add_request + +## 新增与调整 + + +新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api) diff --git a/src/onebot11/action/group/SetGroupAddRequest.ts b/src/onebot11/action/group/SetGroupAddRequest.ts index f442e3ac8..c4ad7ed2d 100644 --- a/src/onebot11/action/group/SetGroupAddRequest.ts +++ b/src/onebot11/action/group/SetGroupAddRequest.ts @@ -12,7 +12,7 @@ const SchemaData = { approve: { type: 'boolean' }, reason: { type: 'string' } }, - required: ['flag', 'approve', 'reason'] + required: ['flag', 'approve'] } as const satisfies JSONSchema; type Payload = FromSchema; diff --git a/src/onebot11/version.ts b/src/onebot11/version.ts index e8f5c96af..6e5882d47 100644 --- a/src/onebot11/version.ts +++ b/src/onebot11/version.ts @@ -1 +1 @@ -export const version = '1.4.8'; +export const version = '1.4.9'; diff --git a/src/webui/ui/NapCat.ts b/src/webui/ui/NapCat.ts index db2562d41..b7f795124 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.4.8', 'napcat-update-button', 'secondary') + SettingButton('V1.4.9', 'napcat-update-button', 'secondary') ), ]), SettingList([ diff --git a/static/assets/renderer.js b/static/assets/renderer.js index bd1132443..eaabf0827 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.4.8", "napcat-update-button", "secondary") + SettingButton("V1.4.9", "napcat-update-button", "secondary") ) ]), SettingList([