From a06158bf017cbcc2b047af04ec9150c641105d52 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: Thu, 7 Nov 2024 12:15:49 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E6=A0=87=E5=87=86=E5=8C=96=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/onebot/action/extends/SetGroupSign.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/onebot/action/extends/SetGroupSign.ts b/src/onebot/action/extends/SetGroupSign.ts index 7854e57c..1702c349 100644 --- a/src/onebot/action/extends/SetGroupSign.ts +++ b/src/onebot/action/extends/SetGroupSign.ts @@ -5,7 +5,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'string' }, + group_id: { type: ['string', 'number'] }, }, required: ['group_id'], } as const satisfies JSONSchema; @@ -17,7 +17,7 @@ export class SetGroupSign extends BaseAction { payloadSchema = SchemaData; async _handle(payload: Payload) { - return await this.core.apis.PacketApi.sendGroupSignPacket(payload.group_id); + return await this.core.apis.PacketApi.sendGroupSignPacket(payload.group_id.toString()); } } export class SendGroupSign extends SetGroupSign { From 4787fa53b4a8da826439db04f26d70211eb36392 Mon Sep 17 00:00:00 2001 From: Mlikiowa Date: Thu, 7 Nov 2024 04:16:13 +0000 Subject: [PATCH 2/2] release: v3.6.3 --- manifest.json | 2 +- package.json | 2 +- src/common/version.ts | 2 +- static/assets/renderer.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index e56b065a..b0fe79df 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "name": "NapCatQQ", "slug": "NapCat.Framework", "description": "高性能的 OneBot 11 协议实现", - "version": "3.6.2", + "version": "3.6.3", "icon": "./logo.png", "authors": [ { diff --git a/package.json b/package.json index d4ca06d1..c5ff0965 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "napcat", "private": true, "type": "module", - "version": "3.6.2", + "version": "3.6.3", "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 576fc9f0..3a38ac2e 100644 --- a/src/common/version.ts +++ b/src/common/version.ts @@ -1 +1 @@ -export const napCatVersion = '3.6.2'; +export const napCatVersion = '3.6.3'; diff --git a/static/assets/renderer.js b/static/assets/renderer.js index a7cbbfdd..c25af70f 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.6.2", "napcat-update-button", "secondary") + SettingButton("V3.6.3", "napcat-update-button", "secondary") ) ]), SettingList([