From 410d6a85d7542277a6b7d1b830a4f08fa4c6dc97 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, 30 Sep 2024 08:30:39 +0800 Subject: [PATCH] fix: protobuf #417 --- manifest.json | 2 +- package.json | 2 +- src/common/version.ts | 2 +- src/core/proto/ProfileLike.ts | 18 ++++++++---------- src/webui/ui/NapCat.ts | 2 +- static/assets/renderer.js | 2 +- 6 files changed, 13 insertions(+), 15 deletions(-) diff --git a/manifest.json b/manifest.json index 580ad5f63..d706622af 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "name": "NapCatQQ", "slug": "NapCat.Framework", "description": "高性能的 OneBot 11 协议实现", - "version": "2.6.18", + "version": "2.6.19", "icon": "./logo.png", "authors": [ { diff --git a/package.json b/package.json index 937363c00..36de0227e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "napcat", "private": true, "type": "module", - "version": "2.6.18", + "version": "2.6.19", "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 34f3541ef..92712d1a8 100644 --- a/src/common/version.ts +++ b/src/common/version.ts @@ -1 +1 @@ -export const napCatVersion = '2.6.18'; +export const napCatVersion = '2.6.19'; diff --git a/src/core/proto/ProfileLike.ts b/src/core/proto/ProfileLike.ts index 96161f971..4cf22ad9a 100644 --- a/src/core/proto/ProfileLike.ts +++ b/src/core/proto/ProfileLike.ts @@ -1,31 +1,29 @@ import { MessageType, BinaryReader, ScalarType, RepeatType } from '@protobuf-ts/runtime'; -export const LikeDetail = new MessageType("LikeDetail", [ +export const LikeDetail = new MessageType("likeDetail", [ { no: 1, name: "txt", kind: "scalar", T: ScalarType.STRING /* string */ }, - { no: 2, name: "uin", kind: "scalar", T: ScalarType.INT64 /* int64 */ }, - { no: 3, name: "nickname", kind: "scalar", T: ScalarType.STRING /* string */ } + { no: 3, name: "uin", kind: "scalar", T: ScalarType.INT64 /* int64 */ }, + { no: 5, name: "nickname", kind: "scalar", T: ScalarType.STRING /* string */ } ]); -export const LikeMsg = new MessageType("LikeMsg", [ +export const LikeMsg = new MessageType("likeMsg", [ { no: 1, name: "times", kind: "scalar", T: ScalarType.INT32 /* int32 */ }, { no: 2, name: "time", kind: "scalar", T: ScalarType.INT32 /* int32 */ }, { no: 3, name: "detail", kind: "message", T: () => LikeDetail } ]); -export const ProfileLikeSubTip = new MessageType("ProfileLikeSubTip", [ +export const ProfileLikeSubTip = new MessageType("profileLikeSubTip", [ { no: 14, name: "msg", kind: "message", T: () => LikeMsg } ]); - -export const ProfileLikeTip = new MessageType("ProfileLikeTip", [ +export const ProfileLikeTip = new MessageType("profileLikeTip", [ { no: 1, name: "msgType", kind: "scalar", T: ScalarType.INT32 /* int32 */ }, { no: 2, name: "subType", kind: "scalar", T: ScalarType.INT32 /* int32 */ }, { no: 203, name: "content", kind: "message", T: () => ProfileLikeSubTip } ]); - export const SysMessageHeader = new MessageType("SysMessageHeader", [ - { no: 1, name: "PeerNumber", kind: "scalar", T: ScalarType.UINT32 /* uin32 */ }, + { no: 1, name: "PeerNumber", kind: "scalar", T: ScalarType.UINT32 /* uint32 */ }, { no: 2, name: "PeerString", kind: "scalar", T: ScalarType.STRING /* string */ }, - { no: 5, name: "Uin", kind: "scalar", T: ScalarType.UINT32 /* uin32 */ }, + { no: 5, name: "Uin", kind: "scalar", T: ScalarType.UINT32 /* uint32 */ }, { no: 6, name: "Uid", kind: "scalar", T: ScalarType.STRING /* string */, opt: true } ]); diff --git a/src/webui/ui/NapCat.ts b/src/webui/ui/NapCat.ts index b68093295..1a9a7e734 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.6.18', 'napcat-update-button', 'secondary'), + SettingButton('V2.6.19', 'napcat-update-button', 'secondary'), ), ]), SettingList([ diff --git a/static/assets/renderer.js b/static/assets/renderer.js index 60363ba60..7ff323de6 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.6.18", "napcat-update-button", "secondary") + SettingButton("V2.6.19", "napcat-update-button", "secondary") ) ]), SettingList([