瀏覽代碼

【会员系统】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)