From 62a24b3c7cf92919a93ee575e9460037e1a53816 Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期四, 07 十一月 2024 19:10:20 +0800
Subject: [PATCH] fix bug

---
 XQMuse/Root/Course/TCell/CourseDetail_2_TCell.swift |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/XQMuse/Root/Course/TCell/CourseDetail_2_TCell.swift b/XQMuse/Root/Course/TCell/CourseDetail_2_TCell.swift
index 22adb47..6f3840f 100644
--- a/XQMuse/Root/Course/TCell/CourseDetail_2_TCell.swift
+++ b/XQMuse/Root/Course/TCell/CourseDetail_2_TCell.swift
@@ -40,9 +40,9 @@
 				func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
 
 								guard let m = model else {return}
-        let isVip = UserViewModel.getAvatarInfo().isVip
+        let isVip = UserViewModel.getAvatarInfo().checkVip()
 
-								if m.chargeType == .free || (m.chargeType == .vipFree && isVip == .yes) || (m.chargeType == .payment && m.isBuy == .yes){
+								if m.chargeType == .free || (m.chargeType == .vipFree && isVip) || (m.chargeType == .payment && m.isBuy == .yes){
 												let vc = CourseDetialVideoVC(items: model!.list, selectIndex: indexPath)
 												JQ_currentNavigationController().pushViewController(vc)
 								}else{

--
Gitblit v1.7.1