mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 重置数据仓库 Fix https://github.com/siyuan-note/siyuan/issues/5212
This commit is contained in:
parent
f23764fee0
commit
0361de475f
7 changed files with 17 additions and 9 deletions
|
|
@ -18,7 +18,7 @@ package model
|
|||
|
||||
import (
|
||||
"crypto/rand"
|
||||
"encoding/hex"
|
||||
"encoding/base64"
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
|
|
@ -59,10 +59,10 @@ func GetRepoIndexLogs(page int) (logs []*dejavu.Log, pageCount, totalCount int,
|
|||
return
|
||||
}
|
||||
|
||||
func ImportRepoKey(hexKey string) (err error) {
|
||||
func ImportRepoKey(base64Key string) (err error) {
|
||||
msgId := util.PushMsg(Conf.Language(136), 1000*7)
|
||||
|
||||
key, err := hex.DecodeString(hexKey)
|
||||
key, err := base64.StdEncoding.DecodeString(base64Key)
|
||||
if nil != err {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue