From c490a22b7cf6949a0b45eb8ee732bace1c023eeb Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期五, 22 十二月 2023 09:54:50 +0800
Subject: [PATCH] fix bug

---
 WanPai/Root/Course/VC/CourseDetailApplyVC.swift |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/WanPai/Root/Course/VC/CourseDetailApplyVC.swift b/WanPai/Root/Course/VC/CourseDetailApplyVC.swift
index 1ab73d7..cb35b2e 100644
--- a/WanPai/Root/Course/VC/CourseDetailApplyVC.swift
+++ b/WanPai/Root/Course/VC/CourseDetailApplyVC.swift
@@ -254,7 +254,7 @@
 						coin = weakSelf.signUpModel?.coinPrice ?? 0
 					}
 
-					PaymentView.show(money: (ali:discountPrice,wx:discountPrice,coin:coin,course:nil,integral:nil)) { [weak self] payType in
+					PaymentView.show(enumType: .course, money: (ali:discountPrice,wx:discountPrice,coin:coin,course:nil,integral:nil)) { [weak self] payType in
 						guard let weakSelf = self else { return }
 
 						var resultPayPrice:Double = 0
@@ -269,7 +269,7 @@
 
 							case .coin:
 								resultPayPrice = Double(coin)
-							case .courseNum,.integral:break
+							default:break
 						}
 
 						Services.courcePayment(conponId: weakSelf.selectCouponModel?.id, courseConfigId: model.id, id: weakSelf.detailModel!.id, price: resultPayPrice, payType: payType, stuId: weakSelf.studentModels.map({$0.id}),orderId: weakSelf.signUpModel?.coursePayId).subscribe(onNext: { data in
@@ -296,7 +296,7 @@
 										let vc = PaymentResultVC(result: .success, objType: .courseApply,handleVC: self,courseConfigId: model.id)
 										vc.isExtend = self?.signUpModel?.payStatus == .paymented
 										self?.push(vc: vc)
-									case .courseNum,.integral:break
+									default:break
 								}
 							}else{
 								alertError(msg: data.msg)

--
Gitblit v1.7.1