|
@@ -648,24 +648,29 @@ NSPopoverDelegate>
|
|
}
|
|
}
|
|
|
|
|
|
- (IBAction)AIButtonAction:(NSButton *)sender {
|
|
- (IBAction)AIButtonAction:(NSButton *)sender {
|
|
|
|
+ if ([[[KMMemberInfo shared] validFlag] isEqualToString:@"5"]) {
|
|
|
|
+ [[KMMemberPromptWC shared] showWindow:sender];
|
|
|
|
+ [KMMemberPromptWC shared].tipType = KMMemberTipTypeSignouting;
|
|
|
|
+ } else {
|
|
#if VERSION_FREE
|
|
#if VERSION_FREE
|
|
#if VERSION_DMG
|
|
#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
|
|
#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
|
|
#endif
|
|
#else
|
|
#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
|
|
#endif
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
- (IBAction)userButtonAction:(NSButton *)sender {
|
|
- (IBAction)userButtonAction:(NSButton *)sender {
|