Browse Source

【会员系统】修复“APPstore比较表价格获取失败”

wanjun 3 days ago
parent
commit
11d205db9a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      PDF Office/PDF Master/Class/Purchase/IAPProductsManager.m

+ 2 - 2
PDF Office/PDF Master/Class/Purchase/IAPProductsManager.m

@@ -134,7 +134,7 @@ NSString * const KMIAPSubscriptionLoadedNotification = @"KMIAPSubscriptionLoaded
         if (flagDis.price) {
             price = [self discountFormattedPrice:false price:flagDis.price];
         } else {
-            price = [NSString stringWithFormat:@"USD $%0.2f", [self.offersPrice doubleValue]];
+            price = [NSString stringWithFormat:@"USD $%0.2f", [self.offersPriceNumber doubleValue]];
 #ifndef VERSION_DMG
             // 获取产品价格信息
             [[IAPProductsManager defaultManager] loadAllProducts];
@@ -184,7 +184,7 @@ NSString * const KMIAPSubscriptionLoadedNotification = @"KMIAPSubscriptionLoaded
             if (mouths <= 0) {
                 mouths = 1.0;
             }
-            price = [NSString stringWithFormat:@"USD $%0.2f", [self.offersAveragePrice doubleValue]/mouths];
+            price = [NSString stringWithFormat:@"USD $%0.2f", [self.offersPriceNumber doubleValue]/mouths];
         }
 #ifndef VERSION_DMG
         // 获取产品价格信息