This commit is contained in:
Liang Ding 2022-11-02 16:00:22 +08:00
parent 11f67cab71
commit b9ad013ae2
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 11 additions and 5 deletions

View file

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