Skip to content

Commit 6ddb457

Browse files
committed
1. UI统一使用“思源黑体”字体
2. 修复导出分享会话时可执行文件可能拷贝错误的情况 3. 修复微信存储路径为网盘时,解密会失败的情况
1 parent 4d9043c commit 6ddb457

File tree

8 files changed

+24
-12
lines changed

8 files changed

+24
-12
lines changed

app.go

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const (
2323
configDefaultUserKey = "userConfig.defaultUser"
2424
configUsersKey = "userConfig.users"
2525
configExportPathKey = "exportPath"
26-
appVersion = "v1.2.1"
26+
appVersion = "v1.2.2"
2727
)
2828

2929
type FileLoader struct {
@@ -832,14 +832,6 @@ func (a *App) ExportWeChatDataByUserName(userName, path string) string {
832832
return "WeChatExportDataByUserName failed:" + err.Error()
833833
}
834834

835-
exeSrcPath := a.FLoader.FilePrefix + "\\" + "wechatDataBackup.exe"
836-
exeDstPath := exPath + "\\" + "wechatDataBackup.exe"
837-
_, err = utils.CopyFile(exeSrcPath, exeDstPath)
838-
if err != nil {
839-
log.Println("CopyFile:", err)
840-
return "CopyFile:" + err.Error()
841-
}
842-
843835
config := map[string]interface{}{
844836
"exportpath": ".\\",
845837
"userconfig": map[string]interface{}{
@@ -861,6 +853,21 @@ func (a *App) ExportWeChatDataByUserName(userName, path string) string {
861853
return "WriteFile:" + err.Error()
862854
}
863855

856+
exeSrcPath, err := os.Executable()
857+
if err != nil {
858+
log.Println("Executable:", exeSrcPath)
859+
return "Executable:" + err.Error()
860+
}
861+
862+
exeDstPath := exPath + "\\" + "wechatDataBackup.exe"
863+
log.Printf("Copy [%s] -> [%s]\n", exeSrcPath, exeDstPath)
864+
_, err = utils.CopyFile(exeSrcPath, exeDstPath)
865+
if err != nil {
866+
log.Println("CopyFile:", err)
867+
return "CopyFile:" + err.Error()
868+
}
869+
return ""
870+
864871
return ""
865872
}
866873

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## v1.2.2
2+
1. UI统一使用“思源黑体”字体
3+
2. 修复导出分享会话时可执行文件可能拷贝错误的情况
4+
3. 修复微信存储路径为网盘时,解密会失败的情况
5+
16
## v1.2.0
27
1. 实现最后浏览位置记录和书签功能
38
2. 实现会话导出分享功能

frontend/dist/assets/index.0393a903.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

frontend/dist/assets/index.5131ab95.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-18.5 KB
Binary file not shown.
7.96 MB
Binary file not shown.

frontend/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
66
<title>wechatDataBackup</title>
77
<script type="module" crossorigin src="/assets/index.e4a8c0f4.js"></script>
8-
<link rel="stylesheet" href="/assets/index.0393a903.css">
8+
<link rel="stylesheet" href="/assets/index.5131ab95.css">
99
</head>
1010
<body >
1111
<div id="root"></div>

pkg/wechat/wechat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ func GetWeChatInfo() (list *WeChatInfoList) {
598598
for _, f := range files {
599599
if strings.HasSuffix(f.Path, "\\Media.db") {
600600
// fmt.Printf("opened %s\n", f.Path[4:])
601-
filePath := f.Path[4:]
601+
filePath := f.Path
602602
parts := strings.Split(filePath, string(filepath.Separator))
603603
if len(parts) < 4 {
604604
log.Println("Error filePath " + filePath)

0 commit comments

Comments
 (0)