From c3dc53eaafc73d6d75eda82f73d26c519a473274 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: Sun, 27 Oct 2024 22:14:17 +0800 Subject: [PATCH] release: v3.3.12 --- manifest.json | 2 +- package.json | 2 +- src/common/version.ts | 2 +- src/onebot/action/go-cqhttp/GetGroupAtAllRemain.ts | 3 --- src/webui/ui/NapCat.ts | 2 +- static/assets/renderer.js | 2 +- 6 files changed, 5 insertions(+), 8 deletions(-) diff --git a/manifest.json b/manifest.json index 0892c003..a586a447 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "name": "NapCatQQ", "slug": "NapCat.Framework", "description": "高性能的 OneBot 11 协议实现", - "version": "3.2.12", + "version": "3.3.12", "icon": "./logo.png", "authors": [ { diff --git a/package.json b/package.json index 10310dc7..03d6efb7 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "napcat", "private": true, "type": "module", - "version": "3.2.12", + "version": "3.3.12", "scripts": { "build:framework": "vite build --mode framework", "build:shell": "vite build --mode shell", diff --git a/src/common/version.ts b/src/common/version.ts index e6e54864..83c2e82f 100644 --- a/src/common/version.ts +++ b/src/common/version.ts @@ -1 +1 @@ -export const napCatVersion = '3.2.12'; +export const napCatVersion = '3.3.12'; diff --git a/src/onebot/action/go-cqhttp/GetGroupAtAllRemain.ts b/src/onebot/action/go-cqhttp/GetGroupAtAllRemain.ts index be9f2fb5..c95bd2fa 100644 --- a/src/onebot/action/go-cqhttp/GetGroupAtAllRemain.ts +++ b/src/onebot/action/go-cqhttp/GetGroupAtAllRemain.ts @@ -17,9 +17,6 @@ export class GoCQHTTPGetGroupAtAllRemain extends BaseAction { async _handle(payload: Payload) { const ret = await this.core.apis.GroupApi.getGroupRemainAtTimes(payload.group_id.toString()); - if (ret.errCode !== 0) { - throw new Error('Not in the group'); - } const data = { can_at_all: ret.atInfo.canAtAll, remain_at_all_count_for_group: ret.atInfo.RemainAtAllCountForGroup, diff --git a/src/webui/ui/NapCat.ts b/src/webui/ui/NapCat.ts index 7c5c0d3c..7519f00d 100644 --- a/src/webui/ui/NapCat.ts +++ b/src/webui/ui/NapCat.ts @@ -30,7 +30,7 @@ async function onSettingWindowCreated(view: Element) { SettingItem( 'Napcat', undefined, - SettingButton('V3.2.12', 'napcat-update-button', 'secondary'), + SettingButton('V3.3.12', 'napcat-update-button', 'secondary'), ), ]), SettingList([ diff --git a/static/assets/renderer.js b/static/assets/renderer.js index 944a90a8..44dc2c26 100644 --- a/static/assets/renderer.js +++ b/static/assets/renderer.js @@ -164,7 +164,7 @@ async function onSettingWindowCreated(view) { SettingItem( 'Napcat', void 0, - SettingButton("V3.2.12", "napcat-update-button", "secondary") + SettingButton("V3.3.12", "napcat-update-button", "secondary") ) ]), SettingList([