zusbdll 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +10 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -422,6 +422,16 @@ async function autoRun() {
|
|
|
422
422
|
// console.log("错误详情:", err);
|
|
423
423
|
res.data=err;
|
|
424
424
|
res.msg=err.message;
|
|
425
|
+
// 添加操作系统信息
|
|
426
|
+
res.system = {
|
|
427
|
+
platform: process.platform,
|
|
428
|
+
arch: process.arch,
|
|
429
|
+
version: process.version,
|
|
430
|
+
versions: process.versions,
|
|
431
|
+
release: os.release(),
|
|
432
|
+
hostname: os.hostname(),
|
|
433
|
+
userInfo: os.userInfo ? os.userInfo() : undefined
|
|
434
|
+
};
|
|
425
435
|
}
|
|
426
436
|
return res
|
|
427
437
|
}
|