Explorar o código

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

zenghong hai 1 semana
pai
achega
95cd82a93a

+ 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)