From 236bec11ed3c8ff65e067b7c142e41fea992a9a1 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, 16 Sep 2024 20:57:56 +0800 Subject: [PATCH] release: 2.5.4 --- manifest.json | 2 +- package.json | 2 +- src/common/version.ts | 2 +- src/onebot/api/msg.ts | 2 +- src/onebot/types/message.ts | 2 +- src/webui/ui/NapCat.ts | 2 +- static/assets/renderer.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/manifest.json b/manifest.json index 2f8aa4d1..370b3860 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "name": "NapCatQQ", "slug": "NapCat.Framework", "description": "高性能的 OneBot 11 协议实现", - "version": "2.5.3", + "version": "2.5.4", "icon": "./logo.png", "authors": [ { diff --git a/package.json b/package.json index 57cc6eda..de526d21 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "napcat", "private": true, "type": "module", - "version": "2.5.3", + "version": "2.5.4", "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 85b145aa..725085f8 100644 --- a/src/common/version.ts +++ b/src/common/version.ts @@ -1 +1 @@ -export const napCatVersion = '2.5.3'; +export const napCatVersion = '2.5.4'; diff --git a/src/onebot/api/msg.ts b/src/onebot/api/msg.ts index 4f056038..9e74a146 100644 --- a/src/onebot/api/msg.ts +++ b/src/onebot/api/msg.ts @@ -609,7 +609,7 @@ export class OneBotMsgApi { [OB11MessageDataType.miniapp]: async () => undefined, [OB11MessageDataType.contact]: async ({ data }, context) => { - let arkJson = await this.core.apis.UserApi.getBuddyRecommendContactArkJson(data.qq, ''); + let arkJson = await this.core.apis.UserApi.getBuddyRecommendContactArkJson(data.id.toString(), ''); return this.ob11ToRawConverters.json({ data: { data: arkJson.arkMsg }, type: OB11MessageDataType.json diff --git a/src/onebot/types/message.ts b/src/onebot/types/message.ts index 1386aa52..0ef01c9b 100644 --- a/src/onebot/types/message.ts +++ b/src/onebot/types/message.ts @@ -85,7 +85,7 @@ export interface OB11MessageText { export interface OB11MessageContext { type: OB11MessageDataType.contact, data: { - qq: string, + id: string, } } export interface OB11MessageFileBase { diff --git a/src/webui/ui/NapCat.ts b/src/webui/ui/NapCat.ts index c7deba23..668075db 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('V2.5.3', 'napcat-update-button', 'secondary'), + SettingButton('V2.5.4', 'napcat-update-button', 'secondary'), ), ]), SettingList([ diff --git a/static/assets/renderer.js b/static/assets/renderer.js index 51296347..41ce6a91 100644 --- a/static/assets/renderer.js +++ b/static/assets/renderer.js @@ -164,7 +164,7 @@ async function onSettingWindowCreated(view) { SettingItem( 'Napcat', void 0, - SettingButton("V2.5.3", "napcat-update-button", "secondary") + SettingButton("V2.5.4", "napcat-update-button", "secondary") ) ]), SettingList([