|
@@ -97,7 +97,6 @@ class KMProductModel: ObservableObject {
|
|
*/
|
|
*/
|
|
func getDMGProductDatas() -> Void {
|
|
func getDMGProductDatas() -> Void {
|
|
checkConnectionAvailable()
|
|
checkConnectionAvailable()
|
|
-
|
|
|
|
KMMemberCenterManager.manager.getListingProducts(isEducation: 0) { [weak self] success, result in
|
|
KMMemberCenterManager.manager.getListingProducts(isEducation: 0) { [weak self] success, result in
|
|
guard let productsArrays : KMMemberProductResult = result else { return }
|
|
guard let productsArrays : KMMemberProductResult = result else { return }
|
|
self?.dmgProductDatas = productsArrays
|
|
self?.dmgProductDatas = productsArrays
|
|
@@ -138,8 +137,7 @@ class KMProductModel: ObservableObject {
|
|
*/
|
|
*/
|
|
func getDMGBatchProductPriceInfosForMember(productId: String, num: Int, _ complete: @escaping KMMemberProductComplete) {
|
|
func getDMGBatchProductPriceInfosForMember(productId: String, num: Int, _ complete: @escaping KMMemberProductComplete) {
|
|
checkConnectionAvailable()
|
|
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 {
|
|
if success {
|
|
guard let productsArrays : KMMemberProductResult = result else {
|
|
guard let productsArrays : KMMemberProductResult = result else {
|
|
complete(false, result)
|
|
complete(false, result)
|