mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d35a19b4fd | ||
![]() |
39c4473367 |
@@ -4,7 +4,7 @@
|
|||||||
"name": "NapCatQQ",
|
"name": "NapCatQQ",
|
||||||
"slug": "NapCat.Framework",
|
"slug": "NapCat.Framework",
|
||||||
"description": "高性能的 OneBot 11 协议实现",
|
"description": "高性能的 OneBot 11 协议实现",
|
||||||
"version": "2.6.25",
|
"version": "2.6.26",
|
||||||
"icon": "./logo.png",
|
"icon": "./logo.png",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
"name": "napcat",
|
"name": "napcat",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.6.25",
|
"version": "2.6.26",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:framework": "vite build --mode framework",
|
"build:framework": "vite build --mode framework",
|
||||||
"build:shell": "vite build --mode shell",
|
"build:shell": "vite build --mode shell",
|
||||||
|
@@ -1 +1 @@
|
|||||||
export const napCatVersion = '2.6.25';
|
export const napCatVersion = '2.6.26';
|
||||||
|
30
src/core/proto/Poke.ts
Normal file
30
src/core/proto/Poke.ts
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
import { MessageType, ScalarType, BinaryWriter } from '@protobuf-ts/runtime';
|
||||||
|
|
||||||
|
export const OidbSvcTrpcTcpBase = new MessageType("oidb_svc_trpctcp_base", [
|
||||||
|
{ no: 1, name: "command", kind: "scalar", T: ScalarType.UINT32 },
|
||||||
|
{ no: 2, name: "subcommand", kind: "scalar", T: ScalarType.UINT32, opt: true },
|
||||||
|
{ no: 4, name: "body", kind: "scalar", T: ScalarType.BYTES, opt: true }
|
||||||
|
]);
|
||||||
|
|
||||||
|
export const OidbSvcTrpcTcp0XED3_1 = new MessageType("oidb_svc_trpctcp_0xed3_1", [
|
||||||
|
{ no: 1, name: "uin", kind: "scalar", T: ScalarType.UINT32 },
|
||||||
|
{ no: 2, name: "groupuin", kind: "scalar", T: ScalarType.UINT32, opt: true },
|
||||||
|
{ no: 5, name: "frienduin", kind: "scalar", T: ScalarType.UINT32, opt: true },
|
||||||
|
{ no: 6, name: "ext", kind: "scalar", T: ScalarType.UINT32 }
|
||||||
|
]);
|
||||||
|
|
||||||
|
export function encodeGroupPoke(groupUin: string, PeerUin: string) {
|
||||||
|
let Body = OidbSvcTrpcTcp0XED3_1.toBinary
|
||||||
|
({
|
||||||
|
uin: parseInt(PeerUin),
|
||||||
|
groupuin: parseInt(groupUin),
|
||||||
|
ext: 0
|
||||||
|
});
|
||||||
|
//console.log(Body)
|
||||||
|
return OidbSvcTrpcTcpBase.toBinary
|
||||||
|
({
|
||||||
|
command: 0xed3,
|
||||||
|
subcommand: 1,
|
||||||
|
body: Body
|
||||||
|
});
|
||||||
|
}
|
@@ -4,7 +4,7 @@ import { dlopen } from "process";
|
|||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
export class Native {
|
export class Native {
|
||||||
platform: string;
|
platform: string;
|
||||||
supportedPlatforms = ['win32'];
|
supportedPlatforms = [];
|
||||||
MoeHooExport: any = { exports: {} };
|
MoeHooExport: any = { exports: {} };
|
||||||
recallHookEnabled: boolean = false;
|
recallHookEnabled: boolean = false;
|
||||||
inited = true;
|
inited = true;
|
||||||
|
@@ -30,7 +30,7 @@ async function onSettingWindowCreated(view: Element) {
|
|||||||
SettingItem(
|
SettingItem(
|
||||||
'<span id="napcat-update-title">Napcat</span>',
|
'<span id="napcat-update-title">Napcat</span>',
|
||||||
undefined,
|
undefined,
|
||||||
SettingButton('V2.6.25', 'napcat-update-button', 'secondary'),
|
SettingButton('V2.6.26', 'napcat-update-button', 'secondary'),
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
SettingList([
|
SettingList([
|
||||||
|
@@ -164,7 +164,7 @@ async function onSettingWindowCreated(view) {
|
|||||||
SettingItem(
|
SettingItem(
|
||||||
'<span id="napcat-update-title">Napcat</span>',
|
'<span id="napcat-update-title">Napcat</span>',
|
||||||
void 0,
|
void 0,
|
||||||
SettingButton("V2.6.25", "napcat-update-button", "secondary")
|
SettingButton("V2.6.26", "napcat-update-button", "secondary")
|
||||||
)
|
)
|
||||||
]),
|
]),
|
||||||
SettingList([
|
SettingList([
|
||||||
|
Reference in New Issue
Block a user