Jelajahi Sumber

【会员系统】付费版office弹出逻辑

wangshuai 5 hari lalu
induk
melakukan
480f9bf7b4

+ 8 - 0
PDF Office/PDF Master/Class/Purchase/DMG/Verification/KMVerificationMessageViewController.m

@@ -621,11 +621,19 @@ NSPopoverDelegate>
 }
 
 - (IBAction)officeButtonAction:(id)sender {
+#if VERSION_FREE
 #if VERSION_DMG
     DMGEmbeddedOldWC *embeddedWC = [DMGEmbeddedOldWC currentFirstTrialWC:@"com.brother.pdfreaderpro.mac.product_2"];
     [embeddedWC showWindow:nil];
     [embeddedWC.window center];
 #endif
+#else
+    [[KMProductCompareWC shared] setOrientation:YES];
+    [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypePro_Base];
+    [[KMProductCompareWC shared] showWindow:nil];
+
+#endif
+
 }
 
 - (NSAttributedString *)numberConvertColor:(NSColor*)color String:(NSString *)string {

+ 3 - 0
PDF Office/PDF Master/MemberCenter/WindowsController/KMMemberPromptWC.swift

@@ -17,6 +17,7 @@ import Cocoa
 
 }
 
+@objcMembers
 class KMMemberPromptWC: NSWindowController {
     
     @IBOutlet weak var titleLabel: NSTextField!
@@ -136,6 +137,8 @@ class KMMemberPromptWC: NSWindowController {
         } else if tipType == .unsubscribe {
         } else if tipType == .signout {
             self.window?.close()
+        } else if tipType == .signouting {
+            self.window?.close()
         }
     }