From f646fbebad928833d15546a36e37768d00fe6173 Mon Sep 17 00:00:00 2001 From: 杨锴 <841720330@qq.com> Date: 星期三, 16 四月 2025 16:39:18 +0800 Subject: [PATCH] fix --- WanPai/Root/Course/VC/CourseVC.swift | 23 +---------------------- 1 files changed, 1 insertions(+), 22 deletions(-) diff --git a/WanPai/Root/Course/VC/CourseVC.swift b/WanPai/Root/Course/VC/CourseVC.swift index eaccce5..c8666b7 100644 --- a/WanPai/Root/Course/VC/CourseVC.swift +++ b/WanPai/Root/Course/VC/CourseVC.swift @@ -66,28 +66,7 @@ } override func setRx() { - // NotificationCenter.default.rx.notification(StudentUpdate_Nofi).take(until: self.rx.deallocated).subscribe(onNext: { [weak self] data in - // guard let weakSelf = self else { return } - // Services.startCourseHome().subscribe(onNext: {[weak self] data in - // if let model = data.data{ - // if model.isThere == 1{ - // UserDefaults.standard.setValue(model.stuId, forKey: "currentStuId") - // UserDefaults.standard.synchronize() - // let courseInfoVC = CourseInfoVC() - // courseInfoVC.startClouseHomeModel = model - // let clouseNav = BaseNav(rootViewController: courseInfoVC) - // clouseNav.tabBarItem = UITabBarItem(title: "玩湃运动营", image: UIImage(named: "tabbar_course"), selectedImage: UIImage(named: "tabbar_course_s")!.withRenderingMode(.alwaysOriginal)) - // self?.tabBarController?.viewControllers![1] = clouseNav - // }else{ - // let courseVC = CourseVC() - // courseVC.startClouseHomeModel = model - // let clouseNav = BaseNav(rootViewController: courseVC) - // clouseNav.tabBarItem = UITabBarItem(title: "玩湃运动营", image: UIImage(named: "tabbar_course"), selectedImage: UIImage(named: "tabbar_course_s")!.withRenderingMode(.alwaysOriginal)) - // self?.tabBarController?.viewControllers![1] = clouseNav - // } - // } - // }).disposed(by: weakSelf.disposeBag) - // }).disposed(by: disposeBag) + } @IBAction func addStudentAction(_ sender: QMUIButton) { -- Gitblit v1.7.1