Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
638fc22d62 | ||
|
|
c87d365b88 | ||
|
|
aee9602f25 |
No files matched your search
+1
-1
@@ -4,7 +4,7 @@
|
||||
"name": "NapCatQQ",
|
||||
"slug": "NapCat.Framework",
|
||||
"description": "高性能的 OneBot 11 协议实现",
|
||||
"version": "4.2.58",
|
||||
"version": "4.2.59",
|
||||
"icon": "./logo.png",
|
||||
"authors": [
|
||||
{
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
"name": "napcat",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"version": "4.2.58",
|
||||
"version": "4.2.59",
|
||||
"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",
|
||||
|
||||
+8
-11
@@ -11,6 +11,7 @@ export class UmamiTraceCore {
|
||||
hostname: string = 'trace.napneko.icu';
|
||||
ua: string = '';
|
||||
workname: string = 'default';
|
||||
bootTime = Date.now();
|
||||
init(qqversion: string, guid: string, workname: string) {
|
||||
this.qqversion = qqversion;
|
||||
this.workname = workname;
|
||||
@@ -43,8 +44,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 +75,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);
|
||||
|
||||
@@ -1 +1 @@
|
||||
export const napCatVersion = '4.2.58';
|
||||
export const napCatVersion = '4.2.59';
|
||||
Reference in new issue
Block a user