修复bug

This commit is contained in:
zeng 2025-06-07 11:35:58 +08:00
parent bfb189cad0
commit 948b44e913

View File

@ -45,6 +45,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
handleOpenAppMessage(webpageURL: nil)
SPStatAPI.requestEnterApp()
handleOnLine()
}
func sceneWillResignActive(_ scene: UIScene) {
@ -148,9 +149,13 @@ extension SceneDelegate {
@objc private func reachabilityDidChangeNotification() {
let localizedData = SPLocalizedManager.shared.localizedData ?? [:]
if SPNetworkReachabilityManager.manager.isReachable == true && localizedData.isEmpty {
if SPNetworkReachabilityManager.manager.isReachable == true {
handleOnLine()
///
if localizedData.isEmpty {
self.startApp()
}
}
}
}