Browse Source

【会员系统】用户中心卡片显示免费试用黑五远程控制显示需建立是否支持可免费试用的前提下才支持

dinglingui 3 months ago
parent
commit
e686017769

+ 11 - 8
PDF Office/PDF Master/MemberCenter/ViewController/KMUserInfoViewController.swift

@@ -769,14 +769,17 @@ class KMUserInfoViewController: NSViewController {
             self.viewModel.closeAccountAction()
         }
         
-        buyNow1BoxLeftConst.constant = 0
-        buyNow2Box.isHidden = false
-        
-        //远程控制
-        if let userViewInfoContent = KMAdvertisementManager.manager.info.userViewInfoContent {
-            if userViewInfoContent.content?.isEmpty == false {
-                buyNow2Box.isHidden = true
-                buyNow1BoxLeftConst.constant = (CGRectGetWidth(view.bounds) - CGRectGetWidth(buyNow1Box.frame))/2
+        if IAPProductsManager.default().fourDevicesAllAccessPackNew12months_lite.isTrialPeriod == false { //没有试用过,才能显示,不然就算远程支持,功能上也不支持远程控制
+            //远程控制
+            if let userViewInfoContent = KMAdvertisementManager.manager.info.userViewInfoContent {
+                
+                buyNow1BoxLeftConst.constant = 0
+                buyNow2Box.isHidden = false
+                
+                if userViewInfoContent.content?.isEmpty == false {
+                    buyNow2Box.isHidden = true
+                    buyNow1BoxLeftConst.constant = (CGRectGetWidth(view.bounds) - CGRectGetWidth(buyNow1Box.frame))/2
+                }
             }
         }
     }