mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-29 03:36:10 +01:00
🎨 开源云端同步服务实现 https://github.com/siyuan-note/siyuan/issues/6445
This commit is contained in:
parent
11f67cab71
commit
b9ad013ae2
4 changed files with 11 additions and 5 deletions
|
|
@ -1017,7 +1017,7 @@ func buildCloudConf() (ret *cloud.Conf, err error) {
|
|||
}
|
||||
|
||||
userId, token, availableSize := "0", "", int64(1024*1024*1024*1024*2)
|
||||
if nil != Conf.User {
|
||||
if nil != Conf.User && conf.ProviderSiYuan == Conf.Sync.Provider {
|
||||
userId = Conf.User.UserId
|
||||
token = Conf.User.UserToken
|
||||
availableSize = Conf.User.GetCloudRepoAvailableSize()
|
||||
|
|
@ -1029,6 +1029,12 @@ func buildCloudConf() (ret *cloud.Conf, err error) {
|
|||
Token: token,
|
||||
AvailableSize: availableSize,
|
||||
Server: util.AliyunServer,
|
||||
|
||||
Endpoint: Conf.Sync.OSS.Endpoint,
|
||||
AccessKey: Conf.Sync.OSS.AccessKey,
|
||||
SecretKey: Conf.Sync.OSS.SecretKey,
|
||||
Bucket: Conf.Sync.OSS.Bucket,
|
||||
Region: Conf.Sync.OSS.Region,
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue