mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
Compare commits
4 Commits
0222664db8
...
ded53cd348
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ded53cd348 | ||
![]() |
be9e80c87b | ||
![]() |
e9fe6f28cc | ||
![]() |
0b8bf739e9 |
@ -30,13 +30,11 @@ NapCatQQ 是现代化的基于 NTQQ 的 Bot 协议端实现
|
|||||||
|
|
||||||
[Cloudflare.Pages](https://napneko.pages.dev/)
|
[Cloudflare.Pages](https://napneko.pages.dev/)
|
||||||
|
|
||||||
[Server.China](https://napneko.com/)
|
|
||||||
|
|
||||||
[Server.Other](https://napcat.cyou/)
|
[Server.Other](https://napcat.cyou/)
|
||||||
|
|
||||||
|
|
||||||
## 回家旅途
|
## 回家旅途
|
||||||
[QQ Group](https://qm.qq.com/q/VfjAq5HIMS)
|
[QQ Group](https://qm.qq.com/q/haLGHixZ74)
|
||||||
|
|
||||||
## 感谢他们
|
## 感谢他们
|
||||||
感谢 [Lagrange](https://github.com/LagrangeDev/Lagrange.Core) 对本项目的大力支持 参考部分代码 已获授权
|
感谢 [Lagrange](https://github.com/LagrangeDev/Lagrange.Core) 对本项目的大力支持 参考部分代码 已获授权
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"name": "NapCatQQ",
|
"name": "NapCatQQ",
|
||||||
"slug": "NapCat.Framework",
|
"slug": "NapCat.Framework",
|
||||||
"description": "高性能的 OneBot 11 协议实现",
|
"description": "高性能的 OneBot 11 协议实现",
|
||||||
"version": "4.1.5",
|
"version": "4.1.6",
|
||||||
"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.1.5",
|
"version": "4.1.6",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:framework": "npm run build:webui && vite build --mode framework",
|
"build:framework": "npm run build:webui && vite build --mode framework",
|
||||||
"build:shell": "npm run build:webui && vite build --mode shell",
|
"build:shell": "npm run build:webui && vite build --mode shell",
|
||||||
|
@ -234,25 +234,33 @@ export class NTEventWrapper {
|
|||||||
this.EventTask.get(ListenerMainName)?.get(ListenerSubName)?.set(id, eventCallback);
|
this.EventTask.get(ListenerMainName)?.get(ListenerSubName)?.set(id, eventCallback);
|
||||||
this.createListenerFunction(ListenerMainName);
|
this.createListenerFunction(ListenerMainName);
|
||||||
|
|
||||||
this.createEventFunction(serviceAndMethod)!(...(args))
|
let eventResult = this.createEventFunction(serviceAndMethod)!(...(args));
|
||||||
.then((eventResult: any) => {
|
|
||||||
retEvent = eventResult;
|
const eventRetHandle = (eventData: any) => {
|
||||||
if (!checkerEvent(retEvent) && timeoutRef.hasRef()) {
|
retEvent = eventData;
|
||||||
clearTimeout(timeoutRef);
|
if (!checkerEvent(retEvent) && timeoutRef.hasRef()) {
|
||||||
reject(
|
clearTimeout(timeoutRef);
|
||||||
new Error(
|
reject(
|
||||||
'EventChecker Failed: NTEvent serviceAndMethod:' +
|
new Error(
|
||||||
serviceAndMethod +
|
'EventChecker Failed: NTEvent serviceAndMethod:' +
|
||||||
' ListenerName:' +
|
serviceAndMethod +
|
||||||
listenerAndMethod +
|
' ListenerName:' +
|
||||||
' EventRet:\n' +
|
listenerAndMethod +
|
||||||
JSON.stringify(retEvent, null, 4) +
|
' EventRet:\n' +
|
||||||
'\n',
|
JSON.stringify(retEvent, null, 4) +
|
||||||
),
|
'\n',
|
||||||
);
|
),
|
||||||
}
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (eventResult instanceof Promise) {
|
||||||
|
eventResult.then((eventResult: any) => {
|
||||||
|
eventRetHandle(eventResult);
|
||||||
})
|
})
|
||||||
.catch(reject);
|
.catch(reject);
|
||||||
|
} else {
|
||||||
|
eventRetHandle(eventResult);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
export const napCatVersion = '4.1.5';
|
export const napCatVersion = '4.1.6';
|
||||||
|
@ -28,7 +28,7 @@ export class GetGroupRootFiles extends BaseAction<Payload, {
|
|||||||
startIndex: 0,
|
startIndex: 0,
|
||||||
sortOrder: 2,
|
sortOrder: 2,
|
||||||
showOnlinedocFolder: 0,
|
showOnlinedocFolder: 0,
|
||||||
}).catch(() => []);
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
files: ret.filter(item => item.fileInfo)
|
files: ret.filter(item => item.fileInfo)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user