This commit is contained in:
Liang Ding 2022-07-06 10:55:39 +08:00
parent 5e8ca37d75
commit fc5895091a
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 14 additions and 2 deletions

View file

@ -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))