diff --git a/manifest.json b/manifest.json index 72c79f61..fd10bf52 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "name": "NapCatQQ", "slug": "NapCat.Framework", "description": "高性能的 OneBot 11 协议实现", - "version": "2.2.14", + "version": "2.2.15", "icon": "./logo.png", "authors": [ { diff --git a/package.json b/package.json index 80a73577..86aa51db 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "napcat", "private": true, "type": "module", - "version": "2.2.14", + "version": "2.2.15", "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 e75d41f0..514f068c 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.14'; +export const napcat_version = '2.2.15'; export class NapCatPathWrapper { binaryPath: string; diff --git a/src/onebot/network/active-websocket.ts b/src/onebot/network/active-websocket.ts index b4ed4edf..4f6fb4a8 100644 --- a/src/onebot/network/active-websocket.ts +++ b/src/onebot/network/active-websocket.ts @@ -142,7 +142,7 @@ export class OB11ActiveWebSocketAdapter implements IOB11NetworkAdapter { } receiveData.params = (receiveData?.params) ? receiveData.params : {};//兼容类型验证 const retdata = await this.actions.get(receiveData.action) - ?.websocketHandle(receiveData.params, echo || ''); + ?.websocketHandle(receiveData.params, echo ?? ''); const packet = Object.assign({}, retdata); this.checkStateAndReply(packet); } catch (e) { diff --git a/src/onebot/network/passive-websocket.ts b/src/onebot/network/passive-websocket.ts index 25d2c66c..a71a9684 100644 --- a/src/onebot/network/passive-websocket.ts +++ b/src/onebot/network/passive-websocket.ts @@ -155,7 +155,7 @@ export class OB11PassiveWebSocketAdapter implements IOB11NetworkAdapter { return; } receiveData.params = (receiveData?.params) ? receiveData.params : {};//兼容类型验证 - const retdata = await this.actions.get(receiveData.action)?.websocketHandle(receiveData.params, echo || ''); + const retdata = await this.actions.get(receiveData.action)?.websocketHandle(receiveData.params, echo ?? ''); const packet = Object.assign({}, retdata); this.checkStateAndReply(packet, wsClient); } catch (e) { diff --git a/src/webui/ui/NapCat.ts b/src/webui/ui/NapCat.ts index 68874e0d..73525bc2 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.14', 'napcat-update-button', 'secondary'), + SettingButton('V2.2.15', 'napcat-update-button', 'secondary'), ), ]), SettingList([ diff --git a/static/assets/renderer.js b/static/assets/renderer.js index 0b5c9dcb..720a0299 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.14", "napcat-update-button", "secondary") + SettingButton("V2.2.15", "napcat-update-button", "secondary") ) ]), SettingList([