|
@@ -528,34 +528,72 @@ NSPopoverDelegate>
|
|
KMVerificationWindowController *vc = [KMVerificationWindowController verificationWithType:KMVerificationTypeRepeatTrialGuide];
|
|
KMVerificationWindowController *vc = [KMVerificationWindowController verificationWithType:KMVerificationTypeRepeatTrialGuide];
|
|
[vc showWindow:nil];
|
|
[vc showWindow:nil];
|
|
} else {
|
|
} else {
|
|
- [[KMProductCompareWC shared] setOrientation:NO];
|
|
|
|
- [[KMProductCompareWC shared] showWindow:nil];
|
|
|
|
|
|
+ [[KMMemberInfo shared] advancedFunctionUsage];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- (IBAction)buttonAction:(id)sender {
|
|
- (IBAction)buttonAction:(id)sender {
|
|
if (KMAdvertisementManager.manager.info.topRightInfoContent != nil) {
|
|
if (KMAdvertisementManager.manager.info.topRightInfoContent != nil) {
|
|
if (KMAdvertisementManager.manager.info.topRightInfoContent.content.firstObject != nil) {
|
|
if (KMAdvertisementManager.manager.info.topRightInfoContent.content.firstObject != nil) {
|
|
- [[KMProductCompareWC shared] setOrientation:YES];
|
|
|
|
-#if VERSION_FREE
|
|
|
|
-#if VERSION_DMG
|
|
|
|
- // DMG
|
|
|
|
- [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeDmg_Base];
|
|
|
|
-#else
|
|
|
|
- // AppStore 免费版本
|
|
|
|
- [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeLite_Base];
|
|
|
|
-#endif
|
|
|
|
-#else
|
|
|
|
- // AppStore 付费版
|
|
|
|
- [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypePro_Base];
|
|
|
|
-#endif
|
|
|
|
- [[KMProductCompareWC shared] showWindow:nil];
|
|
|
|
|
|
+ if ([KMMemberInfo shared].isLogin) {
|
|
|
|
+ if ([[KMMemberInfo shared].vip_levels isEqualToString:@"1"]) {
|
|
|
|
+ [[KMProductCompareWC shared] setOrientation:YES];
|
|
|
|
+ #if VERSION_FREE
|
|
|
|
+ #if VERSION_DMG
|
|
|
|
+ // DMG
|
|
|
|
+ [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeDmg_Base];
|
|
|
|
+ #else
|
|
|
|
+ // AppStore 免费版本
|
|
|
|
+ [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeLite_Base];
|
|
|
|
+ #endif
|
|
|
|
+ #else
|
|
|
|
+ // AppStore 付费版
|
|
|
|
+ [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypePro_Base];
|
|
|
|
+ #endif
|
|
|
|
+ [[KMProductCompareWC shared] showWindow:nil];
|
|
|
|
+ } else {
|
|
|
|
+ [[KMMemberInfo shared] advancedFunctionUsage];
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ [[KMLoginWindowsController shared] openWindow:^(BOOL success) {
|
|
|
|
+ if (success) {
|
|
|
|
+ if ([[KMMemberInfo shared].vip_levels isEqualToString:@"1"]) {
|
|
|
|
+ [[KMProductCompareWC shared] setOrientation:YES];
|
|
|
|
+ #if VERSION_FREE
|
|
|
|
+ #if VERSION_DMG
|
|
|
|
+ // DMG
|
|
|
|
+ [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeDmg_Base];
|
|
|
|
+ #else
|
|
|
|
+ // AppStore 免费版本
|
|
|
|
+ [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeLite_Base];
|
|
|
|
+ #endif
|
|
|
|
+ #else
|
|
|
|
+ // AppStore 付费版
|
|
|
|
+ [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypePro_Base];
|
|
|
|
+ #endif
|
|
|
|
+ [[KMProductCompareWC shared] showWindow:nil];
|
|
|
|
+ } else {
|
|
|
|
+ [[KMMemberInfo shared] advancedFunctionUsage];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }];
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
KMUserScenarioType type = [KMMemberInfo shared].userScenarioType;
|
|
KMUserScenarioType type = [KMMemberInfo shared].userScenarioType;
|
|
if (type == KMUserScenarioTypeDmg_type4) {
|
|
if (type == KMUserScenarioTypeDmg_type4) {
|
|
- [[KMProductCompareWC shared] setOrientation:YES];
|
|
|
|
- [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeTrial];
|
|
|
|
- [[KMProductCompareWC shared] showWindow:nil];
|
|
|
|
|
|
+ if ([KMMemberInfo shared].isLogin) {
|
|
|
|
+ [[KMProductCompareWC shared] setOrientation:YES];
|
|
|
|
+ [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeTrial];
|
|
|
|
+ [[KMProductCompareWC shared] showWindow:nil];
|
|
|
|
+ } else {
|
|
|
|
+ [[KMLoginWindowsController shared] openWindow:^(BOOL success) {
|
|
|
|
+ if (success) {
|
|
|
|
+ [[KMProductCompareWC shared] setOrientation:YES];
|
|
|
|
+ [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeTrial];
|
|
|
|
+ [[KMProductCompareWC shared] showWindow:nil];
|
|
|
|
+ }
|
|
|
|
+ }];
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
[[KMMemberInfo shared] advancedFunctionUsage];
|
|
[[KMMemberInfo shared] advancedFunctionUsage];
|
|
}
|
|
}
|
|
@@ -563,9 +601,19 @@ NSPopoverDelegate>
|
|
} else {
|
|
} else {
|
|
KMUserScenarioType type = [KMMemberInfo shared].userScenarioType;
|
|
KMUserScenarioType type = [KMMemberInfo shared].userScenarioType;
|
|
if (type == KMUserScenarioTypeDmg_type4) {
|
|
if (type == KMUserScenarioTypeDmg_type4) {
|
|
- [[KMProductCompareWC shared] setOrientation:YES];
|
|
|
|
- [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeTrial];
|
|
|
|
- [[KMProductCompareWC shared] showWindow:nil];
|
|
|
|
|
|
+ if ([KMMemberInfo shared].isLogin) {
|
|
|
|
+ [[KMProductCompareWC shared] setOrientation:YES];
|
|
|
|
+ [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeTrial];
|
|
|
|
+ [[KMProductCompareWC shared] showWindow:nil];
|
|
|
|
+ } else {
|
|
|
|
+ [[KMLoginWindowsController shared] openWindow:^(BOOL success) {
|
|
|
|
+ if (success) {
|
|
|
|
+ [[KMProductCompareWC shared] setOrientation:YES];
|
|
|
|
+ [[KMProductCompareWC shared] setOrientationType:KMCompareTableTypeTrial];
|
|
|
|
+ [[KMProductCompareWC shared] showWindow:nil];
|
|
|
|
+ }
|
|
|
|
+ }];
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
[[KMMemberInfo shared] advancedFunctionUsage];
|
|
[[KMMemberInfo shared] advancedFunctionUsage];
|
|
}
|
|
}
|