Commit eaa89736 by 钟乾明

u: 参数二级是对象的先解码再编码

parent fcf8a01e
Showing with 1 additions and 0 deletions
This diff could not be displayed because it is too large.
...@@ -72,6 +72,7 @@ function request (opt) { ...@@ -72,6 +72,7 @@ function request (opt) {
var val = urlParams[key] var val = urlParams[key]
if (isObject(val)) { if (isObject(val)) {
val = JSON.stringify(val) val = JSON.stringify(val)
val = decodeURIComponent(val)//有对象参数的先解码
val = encodeURIComponent(val) val = encodeURIComponent(val)
} else if (/[^\x00-\xff]/.test(val)) { } else if (/[^\x00-\xff]/.test(val)) {
val = encodeURIComponent(val) val = encodeURIComponent(val)
......
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 sign in to comment