优化 #5660
This commit is contained in:
@@ -32,7 +32,9 @@ class JsURL(url: String, baseUrl: String? = null) {
|
|||||||
val map = hashMapOf<String, String>()
|
val map = hashMapOf<String, String>()
|
||||||
query.split("&").forEach {
|
query.split("&").forEach {
|
||||||
val x = it.split("=", limit = 2)
|
val x = it.split("=", limit = 2)
|
||||||
map[x[0]] = URLDecoder.decode(x[1], "utf-8")
|
if (x.size == 2) {
|
||||||
|
map[x[0]] = URLDecoder.decode(x[1], "utf-8")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
map
|
map
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user