From 566c21ad4052be90fb00309ed9b29510fb582636 Mon Sep 17 00:00:00 2001 From: zeng Date: Fri, 25 Apr 2025 09:01:51 +0800 Subject: [PATCH] =?UTF-8?q?1.0=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Thimra.xcodeproj/project.pbxproj | 4 ++++ Thimra/Base/WebView/SPWebViewController.swift | 16 ++-------------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/Thimra.xcodeproj/project.pbxproj b/Thimra.xcodeproj/project.pbxproj index f000d78..96925a4 100644 --- a/Thimra.xcodeproj/project.pbxproj +++ b/Thimra.xcodeproj/project.pbxproj @@ -225,6 +225,8 @@ INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = ""; + INFOPLIST_KEY_UIStatusBarHidden = YES; + INFOPLIST_KEY_UIStatusBarStyle = UIStatusBarStyleLightContent; INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; IPHONEOS_DEPLOYMENT_TARGET = 15.6; @@ -264,6 +266,8 @@ INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = ""; + INFOPLIST_KEY_UIStatusBarHidden = YES; + INFOPLIST_KEY_UIStatusBarStyle = UIStatusBarStyleLightContent; INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; IPHONEOS_DEPLOYMENT_TARGET = 15.6; diff --git a/Thimra/Base/WebView/SPWebViewController.swift b/Thimra/Base/WebView/SPWebViewController.swift index 69a9d53..865a152 100644 --- a/Thimra/Base/WebView/SPWebViewController.swift +++ b/Thimra/Base/WebView/SPWebViewController.swift @@ -48,22 +48,10 @@ class SPWebViewController: SPViewController { } func load(urlString: String) { -// guard let url = URL(string: "https://www.baidu.com") else { return } - var str: String = urlString -// if let userToken = ETLoginManager.manager.userInfo?.userToken { -// if urlString.contains("?") { -// str = urlString + "&userToken=\(userToken)" -// } else { -// str = urlString + "?userToken=\(userToken)" -// } -// } + let str: String = urlString guard let url = URL(string: str) else { return } - var request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalCacheData, timeoutInterval: 30) - -// if ETLoginManager.manager.isLogin, let userToken = ETLoginManager.manager.userInfo?.userToken { -// request.setValue(userToken, forHTTPHeaderField: "userToken") -// } + let request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalCacheData, timeoutInterval: 30) self.webView.load(request) }