🎨 Add membership one-time payment features https://github.com/siyuan-note/siyuan/issues/8906

This commit is contained in:
Daniel 2023-08-05 20:04:21 +08:00
parent c553c87c63
commit dead5c5a7c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 31 additions and 31 deletions

View file

@ -714,13 +714,13 @@ func IsSubscriber() bool {
return nil != Conf.User && (-1 == Conf.User.UserSiYuanProExpireTime || 0 < Conf.User.UserSiYuanProExpireTime) && 0 == Conf.User.UserSiYuanSubscriptionStatus
}
func IsThirdPartySyncPaid() bool {
func IsOneTimePaid() bool {
if IsSubscriber() {
return true
}
return nil != Conf.User // Sign in to use S3/WebDAV data sync https://github.com/siyuan-note/siyuan/issues/8779
// TODO https://github.com/siyuan-note/siyuan/issues/8780
// return nil != Conf.User && 1 == Conf.User.UserSiYuanThirdPartySyncPayStatus
// return nil != Conf.User && 1 == Conf.User.UserSiYuanOneTimePayStatus
}
const (