From 93783809cfb18ae273bd3a78c8dbca91facd10d9 Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期三, 29 十一月 2023 11:49:49 +0800
Subject: [PATCH] fix bug

---
 WanPai/Root/Course/VC/CourseDetailVC.swift |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/WanPai/Root/Course/VC/CourseDetailVC.swift b/WanPai/Root/Course/VC/CourseDetailVC.swift
index 418f5bd..86d49c9 100644
--- a/WanPai/Root/Course/VC/CourseDetailVC.swift
+++ b/WanPai/Root/Course/VC/CourseDetailVC.swift
@@ -66,7 +66,16 @@
 				}
 				view_banner.setItems(items: items)
 
-				if let subM = m.list.first {
+				var tempSub = m.list.first
+				if signUpCourseModel?.chooseHours != nil{
+					for v in m.list{
+						if v.classHours == signUpCourseModel?.chooseHours{
+							tempSub = v;break
+						}
+					}
+				}
+
+				if let subM = tempSub {
 					switch subM.payType {
 						case .coin:
 							label_price.text = ""

--
Gitblit v1.7.1