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