Commit a5b73ddd authored by David黄金龙's avatar David黄金龙

直接判断 ?

parent 7b302b84
...@@ -144,9 +144,20 @@ extension YHJsApi { ...@@ -144,9 +144,20 @@ extension YHJsApi {
} else { } else {
//普通界面 //普通界面
if !url.isEmpty { if !url.isEmpty {
// var tUrl = url + "?navigationH=\(k_Height_NavigationtBarAndStatuBar)"
// let urlHasParam = String.hasQueryParameters(urlString: url)
// if urlHasParam {
// tUrl = url + "&navigationH=\(k_Height_NavigationtBarAndStatuBar)"
// }
// let vc = YHH5WebViewVC()
// vc.url = tUrl
// vc.isFullScreenFlag = isFullScreen == 1 ? true : false
// vc.navTitle = navTitle
// self.delegate?.navigationController?.pushViewController(vc)
var tUrl = url + "?navigationH=\(k_Height_NavigationtBarAndStatuBar)" var tUrl = url + "?navigationH=\(k_Height_NavigationtBarAndStatuBar)"
let urlHasParam = String.hasQueryParameters(urlString: url) if url.contains("?") {
if urlHasParam {
tUrl = url + "&navigationH=\(k_Height_NavigationtBarAndStatuBar)" tUrl = url + "&navigationH=\(k_Height_NavigationtBarAndStatuBar)"
} }
let vc = YHH5WebViewVC() let vc = YHH5WebViewVC()
......
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