Compare commits

...

5 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
63fdff45e0 Add invitor_id field to group request events per OneBot 11 standard
Co-authored-by: sj817 <74231782+sj817@users.noreply.github.com>
2025-11-07 10:37:40 +00:00
copilot-swe-agent[bot]
79ead4df57 Initial plan 2025-11-07 10:31:20 +00:00
Mlikiowa
202338a160 release: v4.9.27 2025-11-07 09:05:14 +00:00
手瓜一十雪
e3eb129a52 Update ffmpeg native binaries for all platforms
Replaces ffmpegAddon binaries for Darwin ARM64, Linux ARM64, Linux x64, and Windows x64 with new versions. Ensures compatibility and includes latest native changes.
2025-11-07 17:04:29 +08:00
手瓜一十雪
7654e9f2bb Update ffmpeg native binaries for all platforms
Replaces ffmpegAddon binaries for Darwin ARM64, Linux ARM64, Linux x64, and Windows x64. Ensures compatibility and includes latest native code updates.
2025-11-07 12:54:36 +08:00
10 changed files with 15 additions and 9 deletions

View File

@@ -4,7 +4,7 @@
"name": "NapCatQQ", "name": "NapCatQQ",
"slug": "NapCat.Framework", "slug": "NapCat.Framework",
"description": "高性能的 OneBot 11 协议实现", "description": "高性能的 OneBot 11 协议实现",
"version": "4.9.26", "version": "4.9.27",
"icon": "./logo.png", "icon": "./logo.png",
"authors": [ "authors": [
{ {

View File

@@ -2,7 +2,7 @@
"name": "napcat", "name": "napcat",
"private": true, "private": true,
"type": "module", "type": "module",
"version": "4.9.26", "version": "4.9.27",
"scripts": { "scripts": {
"build:universal": "npm run build:webui && npm run dev:universal || exit 1", "build:universal": "npm run build:webui && npm run dev:universal || exit 1",
"build:framework": "npm run build:webui && npm run dev:framework || exit 1", "build:framework": "npm run build:webui && npm run dev:framework || exit 1",

View File

@@ -1 +1 @@
export const napCatVersion = '4.9.26'; export const napCatVersion = '4.9.27';

View File

@@ -1434,7 +1434,8 @@ export class OneBotMsgApi {
+await this.core.apis.UserApi.getUinByUidV2(groupInvite.invitorUid), +await this.core.apis.UserApi.getUinByUidV2(groupInvite.invitorUid),
'invite', 'invite',
'', '',
request_seq request_seq,
+await this.core.apis.UserApi.getUinByUidV2(groupInvite.invitorUid)
); );
} else if (SysMessage.contentHead.type === 528 && SysMessage.contentHead.subType === 39 && SysMessage.body?.msgContent) { } else if (SysMessage.contentHead.type === 528 && SysMessage.contentHead.subType === 39 && SysMessage.body?.msgContent) {
return await this.obContext.apis.UserApi.parseLikeEvent(SysMessage.body?.msgContent); return await this.obContext.apis.UserApi.parseLikeEvent(SysMessage.body?.msgContent);

View File

@@ -9,13 +9,15 @@ export class OB11GroupRequestEvent extends OB11BaseRequestEvent {
comment: string; comment: string;
flag: string; flag: string;
sub_type: string; sub_type: string;
invitor_id?: number;
constructor (core: NapCatCore, groupId: number, userId: number, sub_type: string, comment: string, flag: string) { constructor (core: NapCatCore, groupId: number, userId: number, sub_type: string, comment: string, flag: string, invitorId?: number) {
super(core); super(core);
this.group_id = groupId; this.group_id = groupId;
this.user_id = userId; this.user_id = userId;
this.sub_type = sub_type; this.sub_type = sub_type;
this.comment = comment; this.comment = comment;
this.flag = flag; this.flag = flag;
this.invitor_id = invitorId;
} }
} }

View File

@@ -466,13 +466,15 @@ export class NapCatOneBot11Adapter {
notify.status === GroupNotifyMsgStatus.KUNHANDLE notify.status === GroupNotifyMsgStatus.KUNHANDLE
) { ) {
this.context.logger.logDebug(`收到邀请我加群通知:${notify}`); this.context.logger.logDebug(`收到邀请我加群通知:${notify}`);
const inviterUin = +await this.core.apis.UserApi.getUinByUidV2(notify.user2.uid);
const groupInviteEvent = new OB11GroupRequestEvent( const groupInviteEvent = new OB11GroupRequestEvent(
this.core, this.core,
+notify.group.groupCode, +notify.group.groupCode,
+await this.core.apis.UserApi.getUinByUidV2(notify.user2.uid), inviterUin,
'invite', 'invite',
notify.postscript, notify.postscript,
flag flag,
inviterUin
); );
this.networkManager this.networkManager
.emitEvent(groupInviteEvent) .emitEvent(groupInviteEvent)
@@ -488,9 +490,10 @@ export class NapCatOneBot11Adapter {
this.core, this.core,
+notify.group.groupCode, +notify.group.groupCode,
+await this.core.apis.UserApi.getUinByUidV2(notify.user1.uid), +await this.core.apis.UserApi.getUinByUidV2(notify.user1.uid),
'add', 'invite',
notify.postscript, notify.postscript,
flag flag,
+await this.core.apis.UserApi.getUinByUidV2(notify.user2.uid)
); );
this.networkManager this.networkManager
.emitEvent(groupInviteEvent) .emitEvent(groupInviteEvent)