Commit 8a5dacdf authored by David黄金龙's avatar David黄金龙

完善一处逻辑

parent bbe826a5
...@@ -107,6 +107,10 @@ private extension YHStartPageViewController { ...@@ -107,6 +107,10 @@ private extension YHStartPageViewController {
NotificationCenter.default.addObserver(self, selector: #selector(forceUpdateOp), name: YhConstant.YhNotification.didForceUpgradeNotifiction, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(forceUpdateOp), name: YhConstant.YhNotification.didForceUpgradeNotifiction, object: nil)
if let key = UserDefaults.standard.value(forKey: "userAgreeProtocal") as? String,key.contains("true") { if let key = UserDefaults.standard.value(forKey: "userAgreeProtocal") as? String,key.contains("true") {
let dateString = Date().dateString(ofStyle: .short)
UserDefaults.standard.set(dateString, forKey: "todayShowStartPageViewFlag")
UserDefaults.standard.synchronize()
startTimer() startTimer()
} else { } else {
agreeAlertView.isHidden = false agreeAlertView.isHidden = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment