Explorar o código

【会员系统】注销账号中0元ai补充注销逻辑

wangshuai hai 1 día
pai
achega
8b3b190c83

+ 17 - 12
PDF Office/PDF Master/Class/Purchase/DMG/Verification/KMVerificationMessageViewController.m

@@ -648,24 +648,29 @@ NSPopoverDelegate>
 }
 
 - (IBAction)AIButtonAction:(NSButton *)sender {
+    if ([[[KMMemberInfo shared] validFlag] isEqualToString:@"5"]) {
+        [[KMMemberPromptWC shared] showWindow:sender];
+        [KMMemberPromptWC shared].tipType = KMMemberTipTypeSignouting;
+    } else {
 #if VERSION_FREE
 #if VERSION_DMG
-    KMPurchaseEmbeddedWindowController *winC = [KMPurchaseEmbeddedWindowController currentCode:KMAISubscriptionYearTrailCodeKey_DMG];
-    [winC showWindow:nil];
-    [winC.window center];
+        KMPurchaseEmbeddedWindowController *winC = [KMPurchaseEmbeddedWindowController currentCode:KMAISubscriptionYearTrailCodeKey_DMG];
+        [winC showWindow:nil];
+        [winC.window center];
 #else
-//            self.window?.showWaitingView()
-    // AppStore 免费版本
-    IAPProductsManager *man = [IAPProductsManager defaultManager];
-    [man makeSubProduct:man.aiAllAccessPack12month_lite discount:man.isCancelAutoRenew];
-    
+        //            self.window?.showWaitingView()
+        // AppStore 免费版本
+        IAPProductsManager *man = [IAPProductsManager defaultManager];
+        [man makeSubProduct:man.aiAllAccessPack12month_lite discount:man.isCancelAutoRenew];
+        
 #endif
 #else
-    // AppStore 付费版
-//            self.window?.showWaitingView()
-    IAPProductsManager *man = [IAPProductsManager defaultManager];
-    [man makeSubProduct:man.aiAllAccessPack12month_pro discount:man.isCancelAutoRenew];
+        // AppStore 付费版
+        //            self.window?.showWaitingView()
+        IAPProductsManager *man = [IAPProductsManager defaultManager];
+        [man makeSubProduct:man.aiAllAccessPack12month_pro discount:man.isCancelAutoRenew];
 #endif
+    }
 }
 
 - (IBAction)userButtonAction:(NSButton *)sender {