From f2e891eecfac25bf6aed38c8eadfdf05704b16b6 Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期四, 20 六月 2024 18:48:39 +0800
Subject: [PATCH] fix

---
 DolphinEnglishLearnStudent/Other/UIView/CommonAlertView.swift |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/DolphinEnglishLearnStudent/Other/UIView/CommonAlertView.swift b/DolphinEnglishLearnStudent/Other/UIView/CommonAlertView.swift
index 01d5fff..bfdba71 100644
--- a/DolphinEnglishLearnStudent/Other/UIView/CommonAlertView.swift
+++ b/DolphinEnglishLearnStudent/Other/UIView/CommonAlertView.swift
@@ -15,7 +15,7 @@
 				@IBOutlet weak var btn_close: UIButton!
 				@IBOutlet weak var cons_btnClose: NSLayoutConstraint!
 				
-				private var clouse:(()->Void)!
+				private var clouse:(()->Void)?
 				override func awakeFromNib() {
 								super.awakeFromNib()
 								self.alpha = 0
@@ -23,7 +23,7 @@
 								layoutIfNeeded()
 				}
 
-				static func show(isSinple:Bool = false, content:String,clouse:@escaping ()->Void){
+				static func show(isSinple:Bool = false, content:String,clouse:( ()->Void)? = nil){
 								 let commonAlertView = CommonAlertView.jq_loadNibView()
 								sceneDelegate?.window?.addSubview(commonAlertView)
 								commonAlertView.label_content.text = content
@@ -60,7 +60,7 @@
 												self.view_container.transform = .init(scaleX: 0.1, y: 0.1)
 								} completion: { _ in
 												self.removeFromSuperview()
-												self.clouse()
+												self.clouse?()
 								}
 				}
 }

--
Gitblit v1.7.1