mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-30 20:25:17 +01:00
🐛 未登录情况下创建数据快照失败 Fix https://github.com/siyuan-note/siyuan/issues/6448
This commit is contained in:
parent
64ccd06dd4
commit
4b46e2c3d6
4 changed files with 14 additions and 9 deletions
|
|
@ -1007,18 +1007,19 @@ func buildCloudConf() (ret *cloud.Conf, err error) {
|
|||
Conf.Save()
|
||||
}
|
||||
|
||||
userId, token := "0", ""
|
||||
userId, token, availableSize := "0", "", int64(1024*1024*1024*1024*2)
|
||||
if nil != Conf.User {
|
||||
userId = Conf.User.UserId
|
||||
token = Conf.User.UserToken
|
||||
availableSize = Conf.User.GetCloudRepoAvailableSize()
|
||||
}
|
||||
|
||||
ret = &cloud.Conf{
|
||||
Dir: Conf.Sync.CloudName,
|
||||
UserID: userId,
|
||||
Token: token,
|
||||
LimitSize: int64(Conf.User.UserSiYuanRepoSize - Conf.User.UserSiYuanAssetSize),
|
||||
Server: util.AliyunServer,
|
||||
Dir: Conf.Sync.CloudName,
|
||||
UserID: userId,
|
||||
Token: token,
|
||||
AvailableSize: availableSize,
|
||||
Server: util.AliyunServer,
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue