Pārlūkot izejas kodu

【会员系统】修改App编译报错

wanjun 4 dienas atpakaļ
vecāks
revīzija
de190f3c99

+ 12 - 17
PDF Office/PDF Master/Class/Purchase/Appstore/KMPurchaseCompareWindowController.m

@@ -1110,26 +1110,21 @@ static NSString *const KMPurchaseCompareCellIdentifier       = @"KMPurchaseCompa
 #pragma mark - Button Actions
 
 - (IBAction)buttonItemClicked_Subscribe:(id)sender {
-    if KMMemberInfo.shared.isLogin && KMMemberInfo.shared.validFlag == "5" {
-        KMMemberPromptWC.shared.showWindow(nil)
-        KMMemberPromptWC.shared.tipType = .signouting
+    if (self.isPurchaseSwitch) {
+        [[IAPProductsManager defaultManager] makeSubProduct:[IAPProductsManager defaultManager].allAccessPack12months_lite discount:[self isCancelAutoRenew]];
+        
     } else {
+        [[IAPProductsManager defaultManager] makeSubProduct:[IAPProductsManager defaultManager].allAccessPackNew6months_lite discount:[self isCancelAutoRenew]];
+    }
+    [self addWaingView:self.window.contentView];
+    [[FMTrackEventManager defaultManager] trackEventWithEvent:@"PUW" withProperties:@{@"PUW_Btn":@"PUW_Btn_Upgrade_6Mon"}];
+    
+    if ([self isShowSale]) {
+        self.kEventTag = 1;
         if (self.isPurchaseSwitch) {
-            [[IAPProductsManager defaultManager] makeSubProduct:[IAPProductsManager defaultManager].allAccessPack12months_lite discount:[self isCancelAutoRenew]];
-            
+            [self trackEvent_freeWithEventName:@"PromotionalOffer" params:@{@"PUW_Btn" : @"PUW_7OffUpgrade_12Mon"} platform:KMAnalyticsPlatformAppCenter];
         } else {
-            [[IAPProductsManager defaultManager] makeSubProduct:[IAPProductsManager defaultManager].allAccessPackNew6months_lite discount:[self isCancelAutoRenew]];
-        }
-        [self addWaingView:self.window.contentView];
-        [[FMTrackEventManager defaultManager] trackEventWithEvent:@"PUW" withProperties:@{@"PUW_Btn":@"PUW_Btn_Upgrade_6Mon"}];
-        
-        if ([self isShowSale]) {
-            self.kEventTag = 1;
-            if (self.isPurchaseSwitch) {
-                [self trackEvent_freeWithEventName:@"PromotionalOffer" params:@{@"PUW_Btn" : @"PUW_7OffUpgrade_12Mon"} platform:KMAnalyticsPlatformAppCenter];
-            } else {
-                [self trackEvent_freeWithEventName:@"PromotionalOffer" params:@{@"PUW_Btn" : @"PUW_7OffUpgrade_6Mon"} platform:KMAnalyticsPlatformAppCenter];
-            }
+            [self trackEvent_freeWithEventName:@"PromotionalOffer" params:@{@"PUW_Btn" : @"PUW_7OffUpgrade_6Mon"} platform:KMAnalyticsPlatformAppCenter];
         }
     }
 }