mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Add provider info at the end of message in all sync error notifications
This commit is contained in:
parent
86cbf95d5b
commit
e954f7ab94
4 changed files with 26 additions and 17 deletions
|
|
@ -63,6 +63,14 @@ const (
|
|||
ProviderWebDAV = 3 // ProviderWebDAV 为 WebDAV 协议提供的云端存储服务
|
||||
)
|
||||
|
||||
func NewSyncProviderCheckURL() string {
|
||||
return "https://www.baidu.com"
|
||||
func ProviderToStr(provider int) string {
|
||||
switch provider {
|
||||
case ProviderSiYuan:
|
||||
return "SiYuan"
|
||||
case ProviderS3:
|
||||
return "S3"
|
||||
case ProviderWebDAV:
|
||||
return "WebDAV"
|
||||
}
|
||||
return "Unknown"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue