mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 10:30:13 +01:00
🎨 公测云端同步数据仓库 https://github.com/siyuan-note/siyuan/issues/5337
This commit is contained in:
parent
5e8ca37d75
commit
fc5895091a
2 changed files with 14 additions and 2 deletions
|
|
@ -1354,7 +1354,7 @@ func pathSha256Short(p, sep string) string {
|
|||
return buf.String()
|
||||
}
|
||||
|
||||
func GetSyncDirection(cloudDirName string) (code int, msg string) { // 0:失败,10:上传,20:下载,30:一致
|
||||
func GetSyncDirection(cloudDirName string) (code int, msg string) { // 0:失败,10:上传,20:下载,30:一致,40:使用数据仓库同步
|
||||
if !IsSubscriber() {
|
||||
return
|
||||
}
|
||||
|
|
@ -1367,6 +1367,10 @@ func GetSyncDirection(cloudDirName string) (code int, msg string) { // 0:失
|
|||
return
|
||||
}
|
||||
|
||||
if Conf.Sync.UseDataRepo {
|
||||
return 40, ""
|
||||
}
|
||||
|
||||
syncConf, err := getWorkspaceDataConf()
|
||||
if nil != err {
|
||||
msg = fmt.Sprintf(Conf.Language(80), formatErrorMsg(err))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue