|
@@ -264,7 +264,12 @@ class KMUserInfoViewController: NSViewController {
|
|
lockedLabel.stringValue = NSLocalizedString("Annual Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
lockedLabel.stringValue = NSLocalizedString("Annual Plan", tableName: "MemberCenterLocalizable", comment: "")
|
|
lockedImageView.image = NSImage(named: "UpgradeImage2")
|
|
lockedImageView.image = NSImage(named: "UpgradeImage2")
|
|
number1Label.stringValue = NSLocalizedString("", tableName: "MemberCenterLocalizable", comment: "")
|
|
number1Label.stringValue = NSLocalizedString("", tableName: "MemberCenterLocalizable", comment: "")
|
|
- number2Label.stringValue = NSLocalizedString("Advanced Version", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
|
|
|
+ if KMMemberInfo.shared.vip_levels == "2" {
|
|
|
|
+ number2Label.stringValue = NSLocalizedString("Standard Version", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
|
+ } else {
|
|
|
|
+ number2Label.stringValue = NSLocalizedString("Advanced Version", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
|
+ }
|
|
|
|
+
|
|
number1ImageView.isHidden = false
|
|
number1ImageView.isHidden = false
|
|
number1Label.isHidden = true
|
|
number1Label.isHidden = true
|
|
centerBackgroud.image = NSImage(named: "ButtonBackgroundImage5")
|
|
centerBackgroud.image = NSImage(named: "ButtonBackgroundImage5")
|
|
@@ -346,10 +351,22 @@ class KMUserInfoViewController: NSViewController {
|
|
number4_1Label.textColor = NSColor(hex: "42464D")
|
|
number4_1Label.textColor = NSColor(hex: "42464D")
|
|
number5Label.textColor = NSColor(hex: "42464D")
|
|
number5Label.textColor = NSColor(hex: "42464D")
|
|
} else if KMMemberInfo.shared.userScenarioType == .lite_type12 {
|
|
} else if KMMemberInfo.shared.userScenarioType == .lite_type12 {
|
|
- 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")
|
|
lockedImageView.image = NSImage(named: "UpgradeImage2")
|
|
number1Label.stringValue = NSLocalizedString("", tableName: "MemberCenterLocalizable", comment: "")
|
|
number1Label.stringValue = NSLocalizedString("", tableName: "MemberCenterLocalizable", comment: "")
|
|
- number2Label.stringValue = NSLocalizedString("Advanced Version", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
|
|
|
+ if(KMMemberInfo.shared.vip_levels == "2") {
|
|
|
|
+ number2Label.stringValue = NSLocalizedString("Standard Version", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
|
+ } else if((KMMemberInfo.shared.vip_levels == "3")) {
|
|
|
|
+ number2Label.stringValue = NSLocalizedString("Advanced Version", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
|
+ }
|
|
number1ImageView.isHidden = false
|
|
number1ImageView.isHidden = false
|
|
number1Label.isHidden = true
|
|
number1Label.isHidden = true
|
|
centerBackgroud.image = NSImage(named: "ButtonBackgroundImage5")
|
|
centerBackgroud.image = NSImage(named: "ButtonBackgroundImage5")
|
|
@@ -359,7 +376,15 @@ class KMUserInfoViewController: NSViewController {
|
|
number4_1Label.textColor = NSColor(named: "FFFFFF")
|
|
number4_1Label.textColor = NSColor(named: "FFFFFF")
|
|
number5Label.textColor = NSColor(named: "FFFFFF")
|
|
number5Label.textColor = NSColor(named: "FFFFFF")
|
|
} else if KMMemberInfo.shared.userScenarioType == .lite_type13 {
|
|
} else if KMMemberInfo.shared.userScenarioType == .lite_type13 {
|
|
- 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")
|
|
lockedImageView.image = NSImage(named: "UpgradeImage2")
|
|
number1Label.stringValue = NSLocalizedString("", tableName: "MemberCenterLocalizable", comment: "")
|
|
number1Label.stringValue = NSLocalizedString("", tableName: "MemberCenterLocalizable", comment: "")
|
|
if KMMemberInfo.shared.vip_levels == "2" {
|
|
if KMMemberInfo.shared.vip_levels == "2" {
|