瀏覽代碼

Merge branch 'develop_PDFReaderProNew' of git.kdan.cc:Mac_PDF/PDF_Office into develop_PDFReaderProNew

tangchao 6 天之前
父節點
當前提交
4054d68a7d

+ 45 - 18
PDF Office/PDF Master/Class/PDFTools/Convert/NewController/KMConvertWindowController.swift

@@ -1025,25 +1025,52 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
                 alert.addButton(withTitle: NSLocalizedString("Got it", comment: ""))
                 alert.runModal()
             } else {
-                KMProductCompareWC.shared.orientation = false
-                let winC = KMProductCompareWC.shared
-                if convertType == .Word || convertType == .AdvancedWord {
-                    winC.kEventName = "Reading_PDFtoWord_BuyNow"
-                } else if convertType == .Excel {
-                    winC.kEventName = "Reading_PDFtoExcel_BuyNow"
-                } else if convertType == .PPT {
-                    winC.kEventName = "Reading_PDFtoPPT_BuyNow"
-                } else if convertType == .RTF {
-                    winC.kEventName = "Reading_PDFtoRTF_BuyNow"
-                } else if convertType == .CSV {
-                    winC.kEventName = "Reading_PDFtoCSV_BuyNow"
-                } else if convertType == .Text {
-                    winC.kEventName = "Reading_PDFtoText_BuyNow"
-                }
-                if convertType == .JPEG || convertType == .JPG || convertType == .PNG || convertType == .GIF || convertType == .TIFF || convertType == .TGA || convertType == .BMP || convertType == .JP2 {
-                    winC.kEventName = "Reading_PDFtoImage_BuyNow"
+                if KMMemberInfo.shared.isLogin {
+                    KMProductCompareWC.shared.orientation = false
+                    let winC = KMProductCompareWC.shared
+                    if convertType == .Word || convertType == .AdvancedWord {
+                        winC.kEventName = "Reading_PDFtoWord_BuyNow"
+                    } else if convertType == .Excel {
+                        winC.kEventName = "Reading_PDFtoExcel_BuyNow"
+                    } else if convertType == .PPT {
+                        winC.kEventName = "Reading_PDFtoPPT_BuyNow"
+                    } else if convertType == .RTF {
+                        winC.kEventName = "Reading_PDFtoRTF_BuyNow"
+                    } else if convertType == .CSV {
+                        winC.kEventName = "Reading_PDFtoCSV_BuyNow"
+                    } else if convertType == .Text {
+                        winC.kEventName = "Reading_PDFtoText_BuyNow"
+                    }
+                    if convertType == .JPEG || convertType == .JPG || convertType == .PNG || convertType == .GIF || convertType == .TIFF || convertType == .TGA || convertType == .BMP || convertType == .JP2 {
+                        winC.kEventName = "Reading_PDFtoImage_BuyNow"
+                    }
+                    winC.showWindow(nil)
+                } else {
+                    KMLoginWindowsController.shared.openWindow() { [weak self] success in
+                        guard let self = self else { return }
+                        if success {
+                            KMProductCompareWC.shared.orientation = false
+                            let winC = KMProductCompareWC.shared
+                            if self.convertType == .Word || convertType == .AdvancedWord {
+                                winC.kEventName = "Reading_PDFtoWord_BuyNow"
+                            } else if self.convertType == .Excel {
+                                winC.kEventName = "Reading_PDFtoExcel_BuyNow"
+                            } else if self.convertType == .PPT {
+                                winC.kEventName = "Reading_PDFtoPPT_BuyNow"
+                            } else if self.convertType == .RTF {
+                                winC.kEventName = "Reading_PDFtoRTF_BuyNow"
+                            } else if self.convertType == .CSV {
+                                winC.kEventName = "Reading_PDFtoCSV_BuyNow"
+                            } else if self.convertType == .Text {
+                                winC.kEventName = "Reading_PDFtoText_BuyNow"
+                            }
+                            if self.convertType == .JPEG || self.convertType == .JPG || self.convertType == .PNG || self.convertType == .GIF || self.convertType == .TIFF || self.convertType == .TGA || self.convertType == .BMP || self.convertType == .JP2 {
+                                winC.kEventName = "Reading_PDFtoImage_BuyNow"
+                            }
+                            winC.showWindow(nil)
+                        }
+                    }
                 }
-                winC.showWindow(nil)
             }
         }
 #else

+ 36 - 7
PDF Office/PDF Master/Class/Purchase/DMG/KMPurchaseEmbeddedWindowController.swift

@@ -1068,18 +1068,12 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
             
             if(isSubscribeCode() == true) {
                 addButton1.isEnabled = false
-                removeButton1.isEnabled = false
-                amountTextField1.isEditable = false
-                
                 wechatPayButton.isHidden = true
                 alipayButton.isHidden = true
                 
                 prodocumentView.isHidden = true
             } else {
                 addButton1.isEnabled = true
-                removeButton1.isEnabled = true
-                amountTextField1.isEditable = true
-                
                 wechatPayButton.isHidden = false
                 alipayButton.isHidden = false
                 
@@ -1131,7 +1125,42 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
                 
                 xibInitialization()
                 priceRefresh(productsModel: _product_Info)
-                pdfReaderProLabel.stringValue = product_Info.productName //待区分多语
+                
+                func isSubscribeCode()-> Bool {//是否是订阅
+                    if(product_code == "standard-annual-subscription" ||
+                       product_code == "advanced-annual-subscription-blackFive" ||
+                       product_code == "advanced-annual-subscription-trail" ||
+                       product_code == "advanced-annual-subscription" ||
+                       product_code == "ai-subscription-year-trail" ||
+                       product_code == "ai-subscription-month") {
+                        return true
+                    }
+                    return false
+                }
+                
+                func isOneTimePurchaseCode()-> Bool { //是否是一次性购买
+                    if(product_code == "advanced-permanent-blackFive" ||
+                       product_code == "advanced-permanent") {
+                        return true
+                    }
+                    return false
+                }
+                if(_product_code == "standard-annual-subscription") {
+                    pdfReaderProLabel.stringValue = NSLocalizedString("PDF Reader Pro Standard - Annual Plan", tableName: "MemberCenterLocalizable", comment: "")
+                } else if (_product_code == "advanced-annual-subscription-blackFive" ||
+                           _product_code == "advanced-annual-subscription-trail" ||
+                           _product_code == "advanced-annual-subscription") {
+                    pdfReaderProLabel.stringValue = NSLocalizedString("PDF Reader Pro Advanced - Annual Plan", tableName: "MemberCenterLocalizable", comment: "")
+                } else if (_product_code == "ai-subscription-year-trail") {
+                    pdfReaderProLabel.stringValue = NSLocalizedString("PDF Reader Pro Al - Annual Plan", tableName: "MemberCenterLocalizable", comment: "")
+                } else if (_product_code == "ai-subscription-month") {
+                    pdfReaderProLabel.stringValue = NSLocalizedString("PDF Reader Pro Al - Monthly Plan", tableName: "MemberCenterLocalizable", comment: "")
+                } else if (_product_code == "advanced-permanent-blackFive" ||
+                           _product_code == "advanced-permanent") {
+                    pdfReaderProLabel.stringValue = NSLocalizedString("PDF Reader Pro Permanent", tableName: "MemberCenterLocalizable", comment: "")
+                } else {
+                    pdfReaderProLabel.stringValue = product_Info.productName //待区分多语
+                }
             }
         }
     }

+ 34 - 6
PDF Office/PDF Master/Class/Purchase/DMG/Verification/KMVerificationMessageViewController.m

@@ -534,13 +534,41 @@ NSPopoverDelegate>
 }
 
 - (IBAction)buttonAction:(id)sender {
-    KMUserScenarioType type = [KMMemberInfo shared].userScenarioType;
-    if (type == KMUserScenarioTypeDmg_type4) {
-        [[KMProductCompareWC shared] setOrientation:YES];
-        [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeTrial];
-        [[KMProductCompareWC shared] showWindow:nil];
+    if (KMAdvertisementManager.manager.info.topRightInfoContent != nil) {
+        if (KMAdvertisementManager.manager.info.topRightInfoContent.content.firstObject != nil) {
+            [[KMProductCompareWC shared] setOrientation:YES];
+#if VERSION_FREE
+#if VERSION_DMG
+    // DMG
+            [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeDmg_Base];
+#else
+    // AppStore 免费版本
+            [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeLite_Base];
+#endif
+#else
+    // AppStore 付费版
+            [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypePro_Base];
+#endif
+            [[KMProductCompareWC shared] showWindow:nil];
+        } else {
+            KMUserScenarioType type = [KMMemberInfo shared].userScenarioType;
+            if (type == KMUserScenarioTypeDmg_type4) {
+                [[KMProductCompareWC shared] setOrientation:YES];
+                [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeTrial];
+                [[KMProductCompareWC shared] showWindow:nil];
+            } else {
+                [[KMMemberInfo shared] advancedFunctionUsage];
+            }
+        }
     } else {
-        [[KMMemberInfo shared] advancedFunctionUsage];
+        KMUserScenarioType type = [KMMemberInfo shared].userScenarioType;
+        if (type == KMUserScenarioTypeDmg_type4) {
+            [[KMProductCompareWC shared] setOrientation:YES];
+            [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeTrial];
+            [[KMProductCompareWC shared] showWindow:nil];
+        } else {
+            [[KMMemberInfo shared] advancedFunctionUsage];
+        }
     }
 }
 

+ 3 - 0
PDF Office/PDF Master/MemberCenter/Assets/en.lproj/MemberCenterLocalizable.strings

@@ -103,6 +103,9 @@
 "PDF Reader Pro Standard - Annual Plan" = "PDF Reader Pro Standard - Annual Plan";
 "PDF Reader Pro Advanced - Annual Plan" = "PDF Reader Pro Advanced - Annual Plan";
 "PDF Reader Pro Permanent" = "PDF Reader Pro Permanent";
+"PDF Reader Pro Al - Annual Plan" = "PDF Reader Pro Al - Annual Plan";
+"PDF Reader Pro Al - Monthly Plan" = "PDF Reader Pro Al - Monthly Plan";
+
 "Subscribe to All Access Pack to Enjoy More Expanded Features" = "Subscribe to All Access Pack to Enjoy More Expanded Features";
 "Auto-renewal | Billed yearly" = "Auto-renewal | Billed yearly";
 "(Tax Incl.)" = "(Tax Incl.)";

+ 3 - 1
PDF Office/PDF Master/MemberCenter/Assets/zh-Hans.lproj/MemberCenterLocalizable.strings

@@ -98,6 +98,8 @@
 
 "PDF Reader Pro Standard - Annual Plan" = "PDF Reader Pro 标准版 - 年订阅";
 "PDF Reader Pro Advanced - Annual Plan" = "PDF Reader Pro 高级版 - 年订阅";
+"PDF Reader Pro Al - Annual Plan" = "PDF Reader Pro - 年订阅";
+"PDF Reader Pro Al - Monthly Plan" = "PDF Reader Pro - 月订阅";
 "PDF Reader Pro Permanent" = "PDF Reader Pro 永久版";
 "Subscribe to All Access Pack to Enjoy More Expanded Features" = "升级会员套餐解锁更多功能";
 "Auto-renewal | Billed yearly" = "自动续费 | 年订阅";
@@ -178,7 +180,7 @@
 "If you have purchased multiple PDF Reader Pro Permanent in volume, check them in Account Center -> Transfer Benefits. %@" = "如您购买了多个永久版会员,可在用户中心-赠送会员中查看,%@";
 "Check Benefit" = "立即查看";
 
-"If you need to manage seats in PDF Reader Pro, please purchase the %@." = "如需团队席位管理功能,请前往购买%@";
+"If you need to manage seats in PDF Reader Pro, please purchase the %@." = "如需团队席位管理功能,请前往购买%@";
 "enterprise version" = "企业版";
 
 "You can purchase with the account linked to this email. If the email is not registered, an account will be automatically created for you upon successful purchase." = "您可以通过此邮箱关联的账户购买。如该邮箱未注册,购买后将自动为您注册。";

+ 3 - 1
PDF Office/PDF Master/MemberCenter/Assets/zh-Hant.lproj/MemberCenterLocalizable.strings

@@ -98,6 +98,8 @@
 
 "PDF Reader Pro Standard - Annual Plan" = "PDF Reader Pro 標準版 - 年訂閱";
 "PDF Reader Pro Advanced - Annual Plan" = "PDF Reader Pro 進階版 - 年訂閱";
+"PDF Reader Pro Al - Annual Plan" = "PDF Reader Pro Al - 年訂閱";
+"PDF Reader Pro Al - Monthly Plan" = "PDF Reader Pro Al - 月訂閱";
 "PDF Reader Pro Permanent" = "PDF Reader Pro 永久版";
 "Subscribe to All Access Pack to Enjoy More Expanded Features" = "升級會員套餐解鎖更多功能";
 "Auto-renewal | Billed yearly" = "自動續費 | 年訂閱";
@@ -179,7 +181,7 @@
 "If you have purchased multiple PDF Reader Pro Permanent in volume, check them in Account Center -> Transfer Benefits. %@" = "若您購買了多位永久版會員,可在用戶中心-積分會員中查看,%@";
 "Check Benefit" = "立即查看";
 
-"If you need to manage seats in PDF Reader Pro, please purchase the %@." = "如需團隊席位管理功能,請前往購買%@";
+"If you need to manage seats in PDF Reader Pro, please purchase the %@." = "如需團隊席位管理功能,請前往購買%@";
 "enterprise version" = "企業版";
 
 "You can purchase with the account linked to this email. If the email is not registered, an account will be automatically created for you upon successful purchase." = "您可以透過此郵箱關聯的帳戶購買。";

+ 22 - 21
PDF Office/PDF Master/MemberCenter/View/KMSignUpView.xib

@@ -54,8 +54,8 @@
                                 <rect key="frame" x="0.0" y="326" width="279" height="24"/>
                                 <subviews>
                                     <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="BPG-eq-njN">
-                                        <rect key="frame" x="-2" y="4" width="37" height="16"/>
-                                        <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="23V-cH-HsX">
+                                        <rect key="frame" x="-2" y="4" width="52" height="16"/>
+                                        <textFieldCell key="cell" lineBreakMode="clipping" title="Sign Up" id="23V-cH-HsX">
                                             <font key="font" usesAppearanceFont="YES"/>
                                             <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
                                             <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -76,7 +76,7 @@
                                     <subviews>
                                         <textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Lob-YZ-RnN">
                                             <rect key="frame" x="6" y="6" width="265" height="14"/>
-                                            <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" placeholderString="11111" id="pGk-LP-wDS">
+                                            <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" placeholderString="Please enter Email" id="pGk-LP-wDS">
                                                 <font key="font" metaFont="smallSystem"/>
                                                 <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
                                                 <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -111,16 +111,16 @@
                                         </connections>
                                     </button>
                                     <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="mrO-6N-8Nu">
-                                        <rect key="frame" x="16" y="4" width="37" height="16"/>
-                                        <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="deH-Gf-v4Z">
+                                        <rect key="frame" x="16" y="4" width="91" height="16"/>
+                                        <textFieldCell key="cell" lineBreakMode="clipping" title="Stay logged in" id="deH-Gf-v4Z">
                                             <font key="font" metaFont="system"/>
                                             <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
                                             <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                                         </textFieldCell>
                                     </textField>
                                     <button translatesAutoresizingMaskIntoConstraints="NO" id="88J-bh-zlh">
-                                        <rect key="frame" x="234" y="4" width="45" height="16"/>
-                                        <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="3dl-zm-3mP">
+                                        <rect key="frame" x="167" y="4" width="112" height="16"/>
+                                        <buttonCell key="cell" type="bevel" title="Forget Password?" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="3dl-zm-3mP">
                                             <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                             <font key="font" metaFont="system"/>
                                         </buttonCell>
@@ -147,7 +147,7 @@
                                     <subviews>
                                         <button translatesAutoresizingMaskIntoConstraints="NO" id="lP8-at-uhr">
                                             <rect key="frame" x="0.0" y="0.0" width="279" height="32"/>
-                                            <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="QaA-05-5Ij">
+                                            <buttonCell key="cell" type="bevel" title="Sign Up" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="QaA-05-5Ij">
                                                 <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                                 <font key="font" metaFont="system"/>
                                             </buttonCell>
@@ -171,9 +171,10 @@
                                 <rect key="frame" x="0.0" y="0.0" width="279" height="66"/>
                                 <subviews>
                                     <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="nTy-dc-ic8">
-                                        <rect key="frame" x="16" y="50" width="265" height="16"/>
-                                        <textFieldCell key="cell" title="Label" id="eQy-xd-X9I">
+                                        <rect key="frame" x="16" y="2" width="265" height="64"/>
+                                        <textFieldCell key="cell" id="eQy-xd-X9I">
                                             <font key="font" metaFont="system"/>
+                                            <string key="title">I have read and agree to the User Agreement and Privacy Policy, and an account will be automatically created after I log in to an unregistered email address</string>
                                             <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
                                             <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                                         </textFieldCell>
@@ -209,7 +210,7 @@
                                     <subviews>
                                         <button translatesAutoresizingMaskIntoConstraints="NO" id="YK0-m7-FCm">
                                             <rect key="frame" x="0.0" y="0.0" width="140" height="28"/>
-                                            <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="TR5-7V-IZH">
+                                            <buttonCell key="cell" type="bevel" title="Verification code" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="TR5-7V-IZH">
                                                 <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                                 <font key="font" metaFont="systemBold" size="14"/>
                                             </buttonCell>
@@ -219,7 +220,7 @@
                                         </button>
                                         <button translatesAutoresizingMaskIntoConstraints="NO" id="hI0-Ez-r1t">
                                             <rect key="frame" x="140" y="0.0" width="139" height="28"/>
-                                            <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="3Nj-KL-9F9">
+                                            <buttonCell key="cell" type="bevel" title="Password" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="3Nj-KL-9F9">
                                                 <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                                 <font key="font" metaFont="systemBold" size="14"/>
                                             </buttonCell>
@@ -285,13 +286,13 @@
                                             <rect key="frame" x="0.0" y="0.0" width="277" height="26"/>
                                             <subviews>
                                                 <box boxType="custom" cornerRadius="1" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="JUe-bQ-uSN">
-                                                    <rect key="frame" x="0.0" y="0.0" width="226" height="26"/>
+                                                    <rect key="frame" x="0.0" y="0.0" width="228" height="26"/>
                                                     <view key="contentView" id="LsV-oy-6JL">
-                                                        <rect key="frame" x="1" y="1" width="224" height="24"/>
+                                                        <rect key="frame" x="1" y="1" width="226" height="24"/>
                                                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                                                         <subviews>
                                                             <textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Q4E-Ah-Yxy">
-                                                                <rect key="frame" x="6" y="5" width="212" height="14"/>
+                                                                <rect key="frame" x="6" y="5" width="214" height="14"/>
                                                                 <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" id="7p1-b6-AOB">
                                                                     <font key="font" metaFont="smallSystem"/>
                                                                     <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -309,14 +310,14 @@
                                                     </constraints>
                                                 </box>
                                                 <box boxType="custom" borderWidth="0.0" cornerRadius="1" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="YTg-zc-9kj" customClass="KMBox" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                                    <rect key="frame" x="226" y="0.0" width="51" height="26"/>
+                                                    <rect key="frame" x="228" y="0.0" width="49" height="26"/>
                                                     <view key="contentView" id="zmY-cn-OGB">
-                                                        <rect key="frame" x="0.0" y="0.0" width="51" height="26"/>
+                                                        <rect key="frame" x="0.0" y="0.0" width="49" height="26"/>
                                                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                                                         <subviews>
                                                             <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="9CR-yj-hV6">
-                                                                <rect key="frame" x="6" y="6" width="39" height="15"/>
-                                                                <textFieldCell key="cell" lineBreakMode="clipping" alignment="center" title="Label" id="fPD-Vb-cyJ">
+                                                                <rect key="frame" x="6" y="6" width="37" height="15"/>
+                                                                <textFieldCell key="cell" lineBreakMode="clipping" alignment="center" title="Send" id="fPD-Vb-cyJ">
                                                                     <font key="font" metaFont="cellTitle"/>
                                                                     <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
                                                                     <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -409,7 +410,7 @@
                             </box>
                             <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="fa7-or-CZ6">
                                 <rect key="frame" x="-2" y="212" width="283" height="16"/>
-                                <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="AU7-am-n4v">
+                                <textFieldCell key="cell" lineBreakMode="clipping" id="AU7-am-n4v">
                                     <font key="font" usesAppearanceFont="YES"/>
                                     <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
                                     <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -417,7 +418,7 @@
                             </textField>
                             <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="WaO-uv-Tcx">
                                 <rect key="frame" x="-2" y="164" width="283" height="16"/>
-                                <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="tnz-ZO-Lot">
+                                <textFieldCell key="cell" lineBreakMode="clipping" id="tnz-ZO-Lot">
                                     <font key="font" metaFont="system"/>
                                     <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
                                     <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>

+ 13 - 2
PDF Office/PDF Master/MemberCenter/WindowsController/KMProductCompareWC.swift

@@ -328,9 +328,8 @@ class KMProductCompareWC: NSWindowController {
             showDiscountToSaveWindow()
         }
         reloadDataContent()
-
+        
         showDiscount()
-
     }
 
     // MARK: - Private Methods
@@ -959,6 +958,18 @@ class KMProductCompareWC: NSWindowController {
     }
 
     func showDiscount() {
+#if VERSION_FREE
+#if VERSION_DMG
+    // DMG
+        if model.state != .dmg_Base { return }
+#else
+    // AppStore 免费版本
+        if model.state != .lite_Base { return }
+#endif
+#else
+    // AppStore 付费版
+        if model.state != .pro_Base { return }
+#endif
         discountYearly.isHidden = true
         discountPermanent.isHidden = true