From 7b87b0919b6166efb4c26a789c449885948ef8af 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, 26 Aug 2024 02:57:08 +0800 Subject: [PATCH] release: 2.2.12 --- manifest.json | 2 +- package.json | 2 +- src/common/framework/napcat.ts | 2 +- src/onebot/api/msg.ts | 1 + src/webui/ui/NapCat.ts | 2 +- static/assets/renderer.js | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/manifest.json b/manifest.json index 0406eb576..bebfe3385 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "name": "NapCatQQ", "slug": "NapCat.Framework", "description": "高性能的 OneBot 11 协议实现", - "version": "2.2.11", + "version": "2.2.12", "icon": "./logo.png", "authors": [ { diff --git a/package.json b/package.json index 801f64429..0b8a6b854 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "napcat", "private": true, "type": "module", - "version": "2.2.11", + "version": "2.2.12", "scripts": { "build:framework": "vite build --mode framework", "build:shell": "vite build --mode shell", diff --git a/src/common/framework/napcat.ts b/src/common/framework/napcat.ts index f7b62a929..f72bc4fe3 100644 --- a/src/common/framework/napcat.ts +++ b/src/common/framework/napcat.ts @@ -2,7 +2,7 @@ import path, { dirname } from 'path'; import { fileURLToPath } from 'url'; import fs from 'fs'; -export const napcat_version = '2.2.11'; +export const napcat_version = '2.2.12'; export class NapCatPathWrapper { binaryPath: string; diff --git a/src/onebot/api/msg.ts b/src/onebot/api/msg.ts index aa08713c6..fdda01cc6 100644 --- a/src/onebot/api/msg.ts +++ b/src/onebot/api/msg.ts @@ -724,6 +724,7 @@ export class OneBotMsgApi { if (messagePostFormat === 'string') { resMsg.message = msgAsCQCode; + resMsg.raw_message = msgAsCQCode; } else { resMsg.message = msgSegments; resMsg.raw_message = msgAsCQCode; diff --git a/src/webui/ui/NapCat.ts b/src/webui/ui/NapCat.ts index b7f872598..731e37bed 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.2.11', 'napcat-update-button', 'secondary'), + SettingButton('V2.2.12', 'napcat-update-button', 'secondary'), ), ]), SettingList([ diff --git a/static/assets/renderer.js b/static/assets/renderer.js index 370d3416d..b07996bec 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.2.11", "napcat-update-button", "secondary") + SettingButton("V2.2.12", "napcat-update-button", "secondary") ) ]), SettingList([