浏览代码

【会员系统】DMG 进入会员信息界面Crash问题

zenghong 1 周之前
父节点
当前提交
86e8acda3c
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      PDF Office/PDF Master/MemberCenter/ViewController/KMUserInfoViewController.swift

+ 5 - 1
PDF Office/PDF Master/MemberCenter/ViewController/KMUserInfoViewController.swift

@@ -565,8 +565,12 @@ class KMUserInfoViewController: NSViewController {
         closeAccountLabel.font = NSFont.SFProTextRegularFont(14)
         closeAccountImageView.image = NSImage(named: "CloseAccountImage")
         buyNow3Box.fillColor = NSColor(named: "FFFFFF") ?? .white
-        
+#if !VERSION_DMG
         let isNoOldSubscribed = IAPProductsManager.default().allAccessPack6months_lite.isSubscribed == false && IAPProductsManager.default().allAccessPack12months_lite.isSubscribed == false
+#else
+        let isNoOldSubscribed = true
+#endif
+        
         if KMMemberInfo.shared.userScenarioType == .lite_type1 ||
             KMMemberInfo.shared.userScenarioType == .lite_type2 ||
             KMMemberInfo.shared.userScenarioType == .lite_type3 ||