Compare commits

...
11 Commits
Author SHA1 Message Date
pk5ls20 b984116c35 fix: #677
Build Release / check-version (push) Canceled after 0s
Build Release / Build-LiteLoader (push) Canceled after 0s
Build Release / Build-Shell (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
Build Action / Build-LiteLoader (push) Canceled after 0s
Build Action / Build-Shell (push) Canceled after 0s
2024-12-31 21:34:45 +08:00
Mlikiowa 13bda6e3f4 release: v4.2.62 2024-12-31 08:35:55 +00:00
手瓜一十雪 c0d18549d1 fix
Build Release / check-version (push) Canceled after 0s
Build Release / Build-LiteLoader (push) Canceled after 0s
Build Release / Build-Shell (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
Build Action / Build-LiteLoader (push) Canceled after 0s
Build Action / Build-Shell (push) Canceled after 0s
2024-12-31 15:09:08 +08:00
手瓜一十雪 3caff72fce fix: cache trace 2024-12-31 13:10:58 +08:00
Mlikiowa 1313e9c3f4 release: v4.2.61 2024-12-30 15:59:33 +00:00
手瓜一十雪 0848d5a39e feat: clouflare
Build Action / Build-LiteLoader (push) Canceled after 0s
Build Action / Build-Shell (push) Canceled after 0s
Build Release / check-version (push) Canceled after 0s
Build Release / Build-LiteLoader (push) Canceled after 0s
Build Release / Build-Shell (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
2024-12-30 23:59:09 +08:00
手瓜一十雪 7660646059 fix 2024-12-30 22:16:09 +08:00
Mlikiowa bcd90fc744 release: v4.2.60 2024-12-30 12:48:11 +00:00
手瓜一十雪 638fc22d62 fix:error
Build Action / Build-LiteLoader (push) Canceled after 0s
Build Action / Build-Shell (push) Canceled after 0s
Build Release / check-version (push) Canceled after 0s
Build Release / Build-LiteLoader (push) Canceled after 0s
Build Release / Build-Shell (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
2024-12-30 20:47:50 +08:00
手瓜一十雪 c87d365b88 fix 2024-12-30 20:42:23 +08:00
Mlikiowa aee9602f25 release: v4.2.59 2024-12-30 12:29:33 +00:00
8 changed files with 25 additions and 24 deletions

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
"name": "NapCatQQ",
"slug": "NapCat.Framework",
"description": "高性能的 OneBot 11 协议实现",
"version": "4.2.58",
"version": "4.2.62",
"icon": "./logo.png",
"authors": [
{
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "napcat",
"private": true,
"type": "module",
"version": "4.2.58",
"version": "4.2.62",
"scripts": {
"build:universal": "npm run build:webui && vite build --mode universal || exit 1",
"build:framework": "npm run build:webui && vite build --mode framework || exit 1",
+15 -14
View File
@@ -11,6 +11,8 @@ export class UmamiTraceCore {
hostname: string = 'trace.napneko.icu';
ua: string = '';
workname: string = 'default';
bootTime = Date.now();
cache: string = '';
init(qqversion: string, guid: string, workname: string) {
this.qqversion = qqversion;
this.workname = workname;
@@ -43,8 +45,12 @@ export class UmamiTraceCore {
const data = {
napcat_version: this.napcatVersion,
qq_version: this.qqversion,
guid: guid,
workname: this.workname,
napcat_working: this.workname,
device_guid: this.guid,
device_platform: os.platform(),
device_arch: os.arch(),
boot_time: new Date(this.bootTime + 8 * 60 * 60 * 1000).toISOString().replace('T', ' ').substring(0, 19),
sys_time: new Date(Date.now() - os.uptime() * 1000 + 8 * 60 * 60 * 1000).toISOString().replace('T', ' ').substring(0, 19)
};
this.sendEvent(
{
@@ -70,15 +76,7 @@ export class UmamiTraceCore {
language: language || 'en-US',
screen: '1920x1080',
data: {
...data,
napcat_version: this.napcatVersion,
qq_version: this.qqversion,
workname: this.workname,
guid: this.guid,
platform: os.platform(),
arch: os.arch(),
cpus: os.cpus(),
uptime: os.uptime(),
...data
}
};
this.sendRequest(payload, type);
@@ -104,7 +102,8 @@ export class UmamiTraceCore {
headers: {
"Host": "umami.napneko.icu",
"Content-Type": "application/json",
"User-Agent": this.ua
"User-Agent": this.ua,
...(this.cache ? { 'x-umami-cache': this.cache } : {})
}
};
@@ -113,9 +112,11 @@ export class UmamiTraceCore {
});
res.on('data', (data) => {
if (!this.cache) {
this.cache = data.toString();
}
});
});
}).on('error', () => { });
request.write(JSON.stringify({ type, payload }));
request.end();
+1 -1
View File
@@ -1 +1 @@
export const napCatVersion = '4.2.58';
export const napCatVersion = '4.2.62';
+1 -1
View File
@@ -21,7 +21,7 @@ export class PacketOperationContext {
}
async GroupPoke(groupUin: number, uin: number) {
const req = trans.SendPoke.build(groupUin, uin);
const req = trans.SendPoke.build(uin, groupUin);
await this.context.client.sendOidbPacket(req);
}
+1 -1
View File
@@ -14,6 +14,6 @@ export class GroupPoke extends GetPacketStatusDepends<Payload, any> {
payloadSchema = SchemaData;
async _handle(payload: Payload) {
await this.core.apis.PacketApi.pkt.operation.GroupPoke(+payload.user_id, +payload.group_id);
await this.core.apis.PacketApi.pkt.operation.GroupPoke(+payload.group_id, +payload.user_id);
}
}
+3 -3
View File
@@ -15,9 +15,9 @@ export class SendPoke extends GetPacketStatusDepends<Payload, any> {
async _handle(payload: Payload) {
if (payload.group_id) {
this.core.apis.PacketApi.pkt.operation.GroupPoke(+payload.group_id, +payload.user_id);
await this.core.apis.PacketApi.pkt.operation.GroupPoke(+payload.group_id, +payload.user_id);
} else {
this.core.apis.PacketApi.pkt.operation.FriendPoke(+payload.user_id);
await this.core.apis.PacketApi.pkt.operation.FriendPoke(+payload.user_id);
}
}
}
}
+2 -2
View File
@@ -1,10 +1,10 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "ES2021",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": [
"ES2020",
"ES2021",
"DOM",
"DOM.Iterable"
],