|
@@ -167,9 +167,17 @@ class KMUserInfoViewController: NSViewController {
|
|
|
number3Label.stringValue = NSLocalizedString("Platform", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
}
|
|
|
|
|
|
- if KMMemberInfo.shared.userScenarioType == .lite_type1 || KMMemberInfo.shared.userScenarioType == .lite_type9 {
|
|
|
+ if KMMemberInfo.shared.userScenarioType == .lite_type1 {
|
|
|
buyNow1Label.stringValue = NSLocalizedString("Buy Now", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
buyNow2Label.stringValue = NSLocalizedString("7-Day Free Trial", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ } else if KMMemberInfo.shared.userScenarioType == .lite_type9 {
|
|
|
+ if(KMMemberInfo.shared.vip_status == 2) {
|
|
|
+ buyNow3Label.stringValue = NSLocalizedString("Renew now", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ } else if (KMMemberInfo.shared.vip_status == 4) {
|
|
|
+ buyNow3Label.stringValue = NSLocalizedString("Buy Now", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ } else {
|
|
|
+ buyNow3Label.stringValue = NSLocalizedString("Upgrade Now", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ }
|
|
|
} else if KMMemberInfo.shared.userScenarioType == .lite_type3 {
|
|
|
buyNow3Label.stringValue = NSLocalizedString("Buy Now", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
} else if KMMemberInfo.shared.userScenarioType == .lite_type11 {
|
|
@@ -512,7 +520,7 @@ class KMUserInfoViewController: NSViewController {
|
|
|
} else {
|
|
|
self.view.layer?.backgroundColor = NSColor(hex: "FFFFFF").cgColor;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
userImageView.image = NSImage(named: "UserProfilePicture_Size")
|
|
|
emailLabel.textColor = NSColor(named: "0E1114")
|
|
|
emailLabel.font = NSFont.SFMediumFontWithSize(14)
|
|
@@ -565,12 +573,13 @@ class KMUserInfoViewController: NSViewController {
|
|
|
closeAccountLabel.font = NSFont.SFProTextRegularFont(14)
|
|
|
closeAccountImageView.image = NSImage(named: "CloseAccountImage")
|
|
|
buyNow3Box.fillColor = NSColor(named: "FFFFFF") ?? .white
|
|
|
+
|
|
|
+ var isNoOldSubscribed = false
|
|
|
+#if VERSION_FREE
|
|
|
#if !VERSION_DMG
|
|
|
- let isNoOldSubscribed = IAPProductsManager.default().allAccessPack6months_lite.isSubscribed == false && IAPProductsManager.default().allAccessPack12months_lite.isSubscribed == false
|
|
|
-#else
|
|
|
- let isNoOldSubscribed = true
|
|
|
+ isNoOldSubscribed = IAPProductsManager.default().allAccessPack6months_lite.isSubscribed == false && IAPProductsManager.default().allAccessPack12months_lite.isSubscribed == false
|
|
|
+#endif
|
|
|
#endif
|
|
|
-
|
|
|
if KMMemberInfo.shared.userScenarioType == .lite_type1 ||
|
|
|
KMMemberInfo.shared.userScenarioType == .lite_type2 ||
|
|
|
KMMemberInfo.shared.userScenarioType == .lite_type3 ||
|
|
@@ -620,7 +629,7 @@ class KMUserInfoViewController: NSViewController {
|
|
|
arrow3ImageView.image = NSImage(named: "BuyNewArrowImage2")
|
|
|
}
|
|
|
} else if KMMemberInfo.shared.userScenarioType == .lite_type7 ||
|
|
|
- (KMMemberInfo.shared.userScenarioType == .lite_type9 && KMMemberInfo.shared.vip_paymentModel == "2" && isNoOldSubscribed) || (KMMemberInfo.shared.userScenarioType == .lite_type11 && KMMemberInfo.shared.vip_paymentModel == "2" && isNoOldSubscribed) {
|
|
|
+ (KMMemberInfo.shared.userScenarioType == .lite_type9 && !(KMMemberInfo.shared.vip_status == 1 || KMMemberInfo.shared.vip_status == 4) && isNoOldSubscribed) || (KMMemberInfo.shared.userScenarioType == .lite_type11 && KMMemberInfo.shared.vip_paymentModel == "2" && isNoOldSubscribed) {
|
|
|
membershipLabel.textColor = NSColor(hex: "0E1114")
|
|
|
lockedLabel.textColor = NSColor(hex: "42464D")
|
|
|
|