|
@@ -170,9 +170,11 @@ class KMUserInfoViewController: NSViewController {
|
|
|
if KMMemberInfo.shared.userScenarioType == .lite_type1 || KMMemberInfo.shared.userScenarioType == .lite_type9 {
|
|
|
buyNow1Label.stringValue = NSLocalizedString("Buy Now", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
buyNow2Label.stringValue = NSLocalizedString("7-Day Free Trial", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
- } else if KMMemberInfo.shared.userScenarioType == .lite_type3 || KMMemberInfo.shared.userScenarioType == .lite_type11 {
|
|
|
+ } else if KMMemberInfo.shared.userScenarioType == .lite_type3 {
|
|
|
buyNow3Label.stringValue = NSLocalizedString("Buy Now", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
- } else if KMMemberInfo.shared.userScenarioType == .lite_type5 ||
|
|
|
+ } else if KMMemberInfo.shared.userScenarioType == .lite_type11 {
|
|
|
+ buyNow3Label.stringValue = NSLocalizedString("Upgrade Now", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ } else if KMMemberInfo.shared.userScenarioType == .lite_type5 ||
|
|
|
KMMemberInfo.shared.userScenarioType == .pro_type1 ||
|
|
|
KMMemberInfo.shared.userScenarioType == .pro_type3 ||
|
|
|
KMMemberInfo.shared.userScenarioType == .pro_type4 {
|
|
@@ -227,7 +229,15 @@ class KMUserInfoViewController: NSViewController {
|
|
|
number4_1Label.textColor = NSColor(hex: "42464D")
|
|
|
number5Label.textColor = NSColor(hex: "42464D")
|
|
|
} else if KMMemberInfo.shared.userScenarioType == .lite_type4 {
|
|
|
- lockedLabel.stringValue = NSLocalizedString("Annual Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ if(KMMemberInfo.shared.vip_cycle == 1) {
|
|
|
+ lockedLabel.stringValue = NSLocalizedString("Monthly Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ } else if(KMMemberInfo.shared.vip_cycle == 2) {
|
|
|
+ lockedLabel.stringValue = NSLocalizedString("", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ } else if(KMMemberInfo.shared.vip_cycle == 3) {
|
|
|
+ lockedLabel.stringValue = NSLocalizedString("6-Month Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ } else if(KMMemberInfo.shared.vip_cycle == 4) {
|
|
|
+ lockedLabel.stringValue = NSLocalizedString("Annual Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ }
|
|
|
lockedImageView.image = NSImage(named: "UpgradeImage2")
|
|
|
number1Label.stringValue = NSLocalizedString("", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
if KMMemberInfo.shared.vip_levels == "2" {
|
|
@@ -293,7 +303,15 @@ class KMUserInfoViewController: NSViewController {
|
|
|
number4_1Label.textColor = NSColor(hex: "42464D")
|
|
|
number5Label.textColor = NSColor(hex: "42464D")
|
|
|
} else if KMMemberInfo.shared.userScenarioType == .lite_type8 {
|
|
|
- lockedLabel.stringValue = NSLocalizedString("Annual Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ if(KMMemberInfo.shared.vip_cycle == 1) {
|
|
|
+ lockedLabel.stringValue = NSLocalizedString("Monthly Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ } else if(KMMemberInfo.shared.vip_cycle == 2) {
|
|
|
+ lockedLabel.stringValue = NSLocalizedString("", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ } else if(KMMemberInfo.shared.vip_cycle == 3) {
|
|
|
+ lockedLabel.stringValue = NSLocalizedString("6-Month Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ } else if(KMMemberInfo.shared.vip_cycle == 4) {
|
|
|
+ lockedLabel.stringValue = NSLocalizedString("Annual Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ }
|
|
|
lockedImageView.image = NSImage(named: "UpgradeImage2")
|
|
|
number1Label.stringValue = NSLocalizedString("", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
if KMMemberInfo.shared.vip_levels == "2" {
|
|
@@ -548,12 +566,11 @@ class KMUserInfoViewController: NSViewController {
|
|
|
closeAccountImageView.image = NSImage(named: "CloseAccountImage")
|
|
|
buyNow3Box.fillColor = NSColor(named: "FFFFFF") ?? .white
|
|
|
|
|
|
+ let isNoOldSubscribed = IAPProductsManager.default().allAccessPack6months_lite.isSubscribed == false && IAPProductsManager.default().allAccessPack12months_lite.isSubscribed == false
|
|
|
if KMMemberInfo.shared.userScenarioType == .lite_type1 ||
|
|
|
KMMemberInfo.shared.userScenarioType == .lite_type2 ||
|
|
|
KMMemberInfo.shared.userScenarioType == .lite_type3 ||
|
|
|
- KMMemberInfo.shared.userScenarioType == .lite_type9 ||
|
|
|
- KMMemberInfo.shared.userScenarioType == .lite_type10 ||
|
|
|
- KMMemberInfo.shared.userScenarioType == .lite_type11 {
|
|
|
+ KMMemberInfo.shared.userScenarioType == .lite_type10 {
|
|
|
rightsBox.fillColor = NSColor(named: "7094F6_0.1") ?? .white
|
|
|
membershipLabel.textColor = NSColor(hex: "0E1114")
|
|
|
lockedLabel.textColor = NSColor(hex: "42464D")
|
|
@@ -571,9 +588,7 @@ class KMUserInfoViewController: NSViewController {
|
|
|
}
|
|
|
#else
|
|
|
#endif
|
|
|
- } else if KMMemberInfo.shared.userScenarioType == .lite_type3 ||
|
|
|
- KMMemberInfo.shared.userScenarioType == .lite_type11 ||
|
|
|
- KMMemberInfo.shared.userScenarioType == .lite_type9 {
|
|
|
+ } else if KMMemberInfo.shared.userScenarioType == .lite_type3{
|
|
|
buyNow3Label.textColor = NSColor(named: "FFFFFF")
|
|
|
buyBox.contentView = buyView2
|
|
|
buyNow3ImageView.isHidden = false
|
|
@@ -601,8 +616,7 @@ class KMUserInfoViewController: NSViewController {
|
|
|
arrow3ImageView.image = NSImage(named: "BuyNewArrowImage2")
|
|
|
}
|
|
|
} else if KMMemberInfo.shared.userScenarioType == .lite_type7 ||
|
|
|
- KMMemberInfo.shared.userScenarioType == .lite_type8 ||
|
|
|
- KMMemberInfo.shared.userScenarioType == .lite_type13 {
|
|
|
+ (KMMemberInfo.shared.userScenarioType == .lite_type9 && KMMemberInfo.shared.vip_paymentModel == "2" && isNoOldSubscribed) || (KMMemberInfo.shared.userScenarioType == .lite_type11 && KMMemberInfo.shared.vip_paymentModel == "2" && isNoOldSubscribed) {
|
|
|
membershipLabel.textColor = NSColor(hex: "0E1114")
|
|
|
lockedLabel.textColor = NSColor(hex: "42464D")
|
|
|
|