Преглед изворни кода

【会员系统】DMG 批量价格API

zenghong пре 1 недеља
родитељ
комит
95cd82a93a
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      PDF Office/PDF Master/MemberCenter/ViewModel/KMProductModel.swift

+ 1 - 3
PDF Office/PDF Master/MemberCenter/ViewModel/KMProductModel.swift

@@ -97,7 +97,6 @@ class KMProductModel: ObservableObject {
      */
     func getDMGProductDatas() -> Void {
         checkConnectionAvailable()
-
         KMMemberCenterManager.manager.getListingProducts(isEducation: 0) { [weak self] success, result in
             guard let productsArrays : KMMemberProductResult = result else { return }
             self?.dmgProductDatas = productsArrays
@@ -138,8 +137,7 @@ class KMProductModel: ObservableObject {
      */
     func getDMGBatchProductPriceInfosForMember(productId: String, num: Int, _ complete: @escaping KMMemberProductComplete) {
         checkConnectionAvailable()
-        //暂时无教育优惠,先固定传 0
-        KMMemberCenterManager.manager.getBatchProductPrice(productId: productId, num: 0) { [weak self] success, result in
+        KMMemberCenterManager.manager.getBatchProductPrice(productId: productId, num: num) { [weak self] success, result in
             if success {
                 guard let productsArrays : KMMemberProductResult = result else {
                     complete(false, result)