From 803e04b1ba7a513e8a04899c82b38f3c2fac131c Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期一, 01 七月 2024 10:04:06 +0800
Subject: [PATCH] fix

---
 DolphinEnglishLearnStudent/SceneDelegate.swift |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/DolphinEnglishLearnStudent/SceneDelegate.swift b/DolphinEnglishLearnStudent/SceneDelegate.swift
index 1ad3441..1dcdda2 100644
--- a/DolphinEnglishLearnStudent/SceneDelegate.swift
+++ b/DolphinEnglishLearnStudent/SceneDelegate.swift
@@ -62,7 +62,9 @@
 				}
 
 				func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
-
+								if URLContexts.first!.url.host == "resendContextReqByScheme"{
+												WXApi.handleOpen(URLContexts.first!.url, delegate: self)
+								}
 
 				}
 
@@ -119,6 +121,9 @@
 																								UserDefaults.standard.synchronize()
 																				}).disposed(by: weakSelf.disposeBag)
 																}
+												}else{
+																UserDefaults.standard.set(Date().timeIntervalSince1970, forKey: "scheduledTimer")
+																UserDefaults.standard.synchronize()
 												}
 								}
 								timer?.fire()
@@ -128,6 +133,8 @@
 				func suspendTimer(){
 								timer?.fireDate = .distantFuture
 								timer = nil
+								UserDefaults.standard.set(nil, forKey: "scheduledTimer")
+								UserDefaults.standard.synchronize()
 				}
 }
 

--
Gitblit v1.7.1