mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-03-02 08:40:26 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
05f8e8f3c3 | ||
|
|
e760876470 | ||
|
|
e0ec4d4ebb | ||
|
|
79fa0ade0d |
@@ -4,7 +4,7 @@
|
|||||||
"name": "NapCatQQ",
|
"name": "NapCatQQ",
|
||||||
"slug": "NapCat.Framework",
|
"slug": "NapCat.Framework",
|
||||||
"description": "高性能的 OneBot 11 协议实现",
|
"description": "高性能的 OneBot 11 协议实现",
|
||||||
"version": "4.9.21",
|
"version": "4.9.23",
|
||||||
"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": "4.9.21",
|
"version": "4.9.23",
|
||||||
"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",
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
export const napCatVersion = '4.9.21';
|
export const napCatVersion = '4.9.23';
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export interface GrayTipElement {
|
|||||||
templId: string;
|
templId: string;
|
||||||
};
|
};
|
||||||
jsonGrayTipElement: {
|
jsonGrayTipElement: {
|
||||||
busiId?: number | string;
|
busiId: string;
|
||||||
jsonStr: string;
|
jsonStr: string;
|
||||||
recentAbstract?: string;
|
recentAbstract?: string;
|
||||||
isServer?: boolean;
|
isServer?: boolean;
|
||||||
|
|||||||
@@ -351,11 +351,11 @@ export class OneBotGroupApi {
|
|||||||
}
|
}
|
||||||
} else if (grayTipElement.subElementType === NTGrayTipElementSubTypeV2.GRAYTIP_ELEMENT_SUBTYPE_JSON) {
|
} else if (grayTipElement.subElementType === NTGrayTipElementSubTypeV2.GRAYTIP_ELEMENT_SUBTYPE_JSON) {
|
||||||
// 解析json事件 busiId好像是string类型的?
|
// 解析json事件 busiId好像是string类型的?
|
||||||
if (grayTipElement.jsonGrayTipElement.busiId?.toString() === '1061') {
|
if (grayTipElement.jsonGrayTipElement.busiId === '1061') {
|
||||||
return await this.parsePaiYiPai(msg, grayTipElement.jsonGrayTipElement.jsonStr);
|
return await this.parsePaiYiPai(msg, grayTipElement.jsonGrayTipElement.jsonStr);
|
||||||
} else if (grayTipElement.jsonGrayTipElement.busiId === JsonGrayBusiId.AIO_GROUP_ESSENCE_MSG_TIP) {
|
} else if (grayTipElement.jsonGrayTipElement.busiId === JsonGrayBusiId.AIO_GROUP_ESSENCE_MSG_TIP.toString()) {
|
||||||
return await this.parseEssenceMsg(msg, grayTipElement.jsonGrayTipElement.jsonStr);
|
return await this.parseEssenceMsg(msg, grayTipElement.jsonGrayTipElement.jsonStr);
|
||||||
} else if ((grayTipElement.jsonGrayTipElement.busiId ?? 0).toString() === '51') {
|
} else if (grayTipElement.jsonGrayTipElement.busiId === '51') {
|
||||||
// 51是什么?{"align":"center","items":[{"txt":"下一秒起床通过王者荣耀加入群","type":"nor"}]
|
// 51是什么?{"align":"center","items":[{"txt":"下一秒起床通过王者荣耀加入群","type":"nor"}]
|
||||||
return await this.parse51TypeEvent(msg, grayTipElement);
|
return await this.parse51TypeEvent(msg, grayTipElement);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { require_dlopen } from '.';
|
|||||||
export function pty_loader () {
|
export function pty_loader () {
|
||||||
let pty: any;
|
let pty: any;
|
||||||
try {
|
try {
|
||||||
pty = require_dlopen('./pty/' + process.platform + '.' + process.arch + '/pty.node');
|
pty = require_dlopen('./native/pty/' + process.platform + '.' + process.arch + '/pty.node');
|
||||||
} catch {
|
} catch {
|
||||||
pty = undefined;
|
pty = undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user