|
@@ -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) {
|