Procházet zdrojové kódy

【会员系统】修复“DMG,一个注销中的账号,点击免费试用或者开通会员,进入比较表,点击购买需要弹出撤销注销提示”

wanjun před 6 dny
rodič
revize
ce2842c29b

+ 5 - 0
PDF Office/PDF Master/MemberCenter/WindowsController/KMProductCompareWC.swift

@@ -1133,6 +1133,10 @@ class KMProductCompareWC: NSWindowController {
     }
     
     @IBAction func appstorePurchaseAction(_ sender: NSButton) {
+        if KMMemberInfo.shared.validFlag == "5" {
+            KMMemberPromptWC.shared.showWindow(nil)
+            KMMemberPromptWC.shared.tipType = .signouting
+        } else {
 #if !VERSION_DMG
         addWaitingView(to: window?.contentView ?? NSView())
 #endif
@@ -1143,6 +1147,7 @@ class KMProductCompareWC: NSWindowController {
 #if VERSION_DMG
         close()
 #endif
+        }
     }
     
     // MARK: - InAppPurchaseManager Notification