From 1639e83c543ea728592570bfa824702e0dca1d63 Mon Sep 17 00:00:00 2001
From: younger_times <841720330@qq.com>
Date: 星期五, 28 七月 2023 14:20:18 +0800
Subject: [PATCH] fix

---
 WanPai/Root/Course/VC/StudentCourseDetailVC.swift |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/WanPai/Root/Course/VC/StudentCourseDetailVC.swift b/WanPai/Root/Course/VC/StudentCourseDetailVC.swift
index 10b444e..661eebc 100644
--- a/WanPai/Root/Course/VC/StudentCourseDetailVC.swift
+++ b/WanPai/Root/Course/VC/StudentCourseDetailVC.swift
@@ -127,8 +127,8 @@
     }
 
     @objc func datetimePickerAction(){
-        CommonDatePickerView.show(before: 3, after: 0, type: .YM) { [weak self] year, month, _ in
-            let date = Date.jq_format(year: year, month: month, day: 2)
+        CommonDatePickerView.show(before: 3, after: 0, type: .YM) { [weak self] year, month, _,_,_ in
+            let date = Date.jq_format(year: year!, month: month!, day: 2)
             self?.sectionView.btn_datetime.setTitle(date!.jq_format("yyyy年MM月>"), for: .normal)
             self?.viewModel.startTime.accept(date)
             self?.viewModel.beginRefresh()

--
Gitblit v1.7.1