瀏覽代碼

【会员系统】修复“注销中的账户,再去购买AI 的 月订阅 或 年订阅,未提示用户撤销账户注销”

wanjun 4 月之前
父節點
當前提交
6196c6d6ab

+ 9 - 4
PDF Office/PDF Master/Class/AIInfo/AIPurchaseWindowController/AIPurchaseWindowController.swift

@@ -204,13 +204,18 @@ class AIPurchaseWindowController: NSWindowController, NSWindowDelegate {
     
     //MARK: - IBAction
     @IBAction func purchaseAction(_ sender: KMButton) {
+        if KMMemberInfo.shared.isLogin && KMMemberInfo.shared.validFlag == "5" {
+            KMMemberPromptWC.shared.showWindow(nil)
+            KMMemberPromptWC.shared.tipType = .signouting
+        } else {
 #if VERSION_FREE
-        IAPProductsManager.default().make(IAPProductsManager.default().aiAllAccessPack1month_lite)
+            IAPProductsManager.default().make(IAPProductsManager.default().aiAllAccessPack1month_lite)
 #else
-        IAPProductsManager.default().make(IAPProductsManager.default().aiAllAccessPack1month_pro)
+            IAPProductsManager.default().make(IAPProductsManager.default().aiAllAccessPack1month_pro)
 #endif
-        self.addWaingView((self.window?.contentView)!)
-        FMTrackEventManager.defaultManager.trackOnceEvent(event: "PUW", withProperties: ["PUW_Btn":"PUW_Btn_BuyAITools"])
+            self.addWaingView((self.window?.contentView)!)
+            FMTrackEventManager.defaultManager.trackOnceEvent(event: "PUW", withProperties: ["PUW_Btn":"PUW_Btn_BuyAITools"])
+        }
     }
     
     @IBAction func restoreAction(_ sender: Any) {