|
@@ -85,7 +85,8 @@ class AccountProfileController: NSViewController {
|
|
|
|
|
|
let isVip = model?.isVip ?? 0
|
|
|
self.tipLabel.isHidden = isVip == 1
|
|
|
- if isVip == 1 {
|
|
|
+ let datas = (model?.rightsInterestsData ?? []) + (model?.expiredBenefits ?? [])
|
|
|
+ if datas.isEmpty == false {
|
|
|
self.showRight()
|
|
|
} else {
|
|
|
self.showBenefit()
|
|
@@ -147,7 +148,8 @@ class AccountProfileController: NSViewController {
|
|
|
AccountManager.manager.saveRights(model: model)
|
|
|
|
|
|
NotificationCenter.default.post(name: .loginStatusChanged, object: nil)
|
|
|
- if isVip == 1 {
|
|
|
+ let datas = model.rightsInterestsData + model.expiredBenefits
|
|
|
+ if datas.isEmpty == false {
|
|
|
self.showRight()
|
|
|
} else {
|
|
|
self.showBenefit()
|