🎨 不支持配置坚果云 WebDAV 进行同步 https://github.com/siyuan-note/siyuan/issues/7657

This commit is contained in:
Liang Ding 2023-03-14 11:48:28 +08:00
parent b9a7c0c34c
commit a5e281f0b5
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 17 additions and 5 deletions

View file

@ -1116,6 +1116,7 @@
"190": "A problem was found while validating the index, which has been automatically fixed",
"191": "[%d/%d] Created historical data index",
"192": "Rebuilding historical data index, please wait...",
"193": "Please refer to the [Artificial Intelligence] chapter of the User Guide for configuration"
"193": "Please refer to the [Artificial Intelligence] chapter of the User Guide for configuration",
"194": "There are restrictions on the Nutstore interface, please use other WebDAV services"
}
}

View file

@ -1116,6 +1116,7 @@
"190": "Se encontro un problema al validar el indice, el cual se soluciono automaticamente",
"191": "[%d/%d] Índice de datos históricos creado",
"192": "Reconstruyendo el índice de datos históricos, espere...",
"193": "Consulte el capítulo [Inteligencia artificial] de la guía del usuario para la configuración"
"193": "Consulte el capítulo [Inteligencia artificial] de la guía del usuario para la configuración",
"194": "Existen restricciones en la interfaz de Nutstore, utilice otros servicios WebDAV"
}
}

View file

@ -1116,6 +1116,7 @@
"190": "Un problème a été trouvé lors de la validation de l'index, qui a été automatiquement corrigé",
"191": "[%d/%d] Création d'un index de données historiques",
"192": "Reconstruction de l'index des données historiques, veuillez patienter...",
"193": "Veuillez vous référer au chapitre [Intelligence Artificielle] du guide de l'utilisateur pour la configuration"
"193": "Veuillez vous référer au chapitre [Intelligence Artificielle] du guide de l'utilisateur pour la configuration",
"194": "Il existe des restrictions sur l'interface Nutstore, veuillez utiliser d'autres services WebDAV"
}
}

View file

@ -1116,6 +1116,7 @@
"190": "校驗索引時發現一個問題,已經自動修復",
"191": "[%d/%d] 已經建立條歷史數據索引",
"192": "正在重建歷史數據索引,請稍等...",
"193": "請先參考用戶指南 [人工智能] 章節進行配置"
"193": "請先參考用戶指南 [人工智能] 章節進行配置",
"194": "堅果雲接口存在限制,請使用其他 WebDAV 服務"
}
}

View file

@ -1116,6 +1116,7 @@
"190": "校验索引时发现一个问题,已经自动修复",
"191": "[%d/%d] 已经建立条历史数据索引",
"192": "正在重建历史数据索引,请稍等...",
"193": "请先参考用户指南 [人工智能] 章节进行配置"
"193": "请先参考用户指南 [人工智能] 章节进行配置",
"194": "坚果云接口存在限制,请使用其他 WebDAV 服务"
}
}

View file

@ -374,6 +374,13 @@ func SetSyncProviderS3(s3 *conf.S3) (err error) {
func SetSyncProviderWebDAV(webdav *conf.WebDAV) (err error) {
webdav.Endpoint = strings.TrimSpace(webdav.Endpoint)
webdav.Endpoint = util.NormalizeEndpoint(webdav.Endpoint)
// 不支持配置坚果云 WebDAV 进行同步 https://github.com/siyuan-note/siyuan/issues/7657
if strings.Contains(strings.ToLower(webdav.Endpoint), "dav.jianguoyun.com") {
err = errors.New(Conf.Language(194))
return
}
webdav.Username = strings.TrimSpace(webdav.Username)
webdav.Password = strings.TrimSpace(webdav.Password)
webdav.Timeout = util.NormalizeTimeout(webdav.Timeout)