Commit 45346fc1 authored by Steven杜宇's avatar Steven杜宇

// H5处理

parent ee169470
......@@ -20,8 +20,8 @@ func isEmptyString(_ string: String?) -> Bool {
extension String {
static func hasQueryParameters(urlString: String) -> Bool {
if let url = URL(string: urlString) {
return url.query != nil && !url.query!.isEmpty
if urlString.contains("?") {
return true
}
return 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