Skip to content

Commit ff5debd

Browse files
committed
优化:工单提交日志收集完善更多信息,方便排查问题
1 parent 979e81b commit ff5debd

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
- 新增:工单反馈功能,便于解决问题
44
- 新增:应用 loading 窗口
55
- 优化:请求异常时增加错误码
6+
- 优化:系统未捕获异常日志记录
7+
- 优化:工单提交日志收集完善更多信息,方便排查问题
68
- 修复:windows下路径编码问题
79

810
## v0.3.0

electron/mapi/app/main.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {app, BrowserWindow, clipboard, ipcMain, nativeImage, nativeTheme, screen, shell} from "electron";
22
import {WindowConfig} from "../../config/window";
33
import {AppRuntime} from "../env";
4-
import {isDev, isMac, platformArch, platformName} from "../../lib/env";
4+
import {isDev, isMac, platformArch, platformName, platformUUID, platformVersion} from "../../lib/env";
55
import {AppPosition} from "./lib/position";
66
import {Events} from "../event/main";
77
import {ConfigMain} from "../config/main";
@@ -12,6 +12,8 @@ import {makeToast} from "./toast";
1212
import {SetupMain} from "./setup";
1313
import {Files} from "../file/main";
1414
import {makeLoading} from "./loading";
15+
import {AppConfig} from "../../../src/config";
16+
import Apps from "./index";
1517

1618

1719
const getWindowByName = (name?: string) => {
@@ -333,6 +335,11 @@ ipcMain.handle('app:getBuildInfo', async () => {
333335

334336
const collect = async (options?: {}) => {
335337
return {
338+
userAgent: Apps.getUserAgent(),
339+
name: AppConfig.name,
340+
version: AppConfig.version,
341+
uuid: platformUUID(),
342+
platformVersion: platformVersion(),
336343
platformName: platformName(),
337344
platformArch: platformArch(),
338345
}

0 commit comments

Comments
 (0)