Commit 38334d5a authored by Quxl's avatar Quxl
parents bcfe718f aa71e6cf
...@@ -261,11 +261,14 @@ public class HttpUtil { ...@@ -261,11 +261,14 @@ public class HttpUtil {
: (val instanceof Object[] ? (Object[]) val : new Object[] { val })); : (val instanceof Object[] ? (Object[]) val : new Object[] { val }));
if (sVals != null && sVals.length > 0) { if (sVals != null && sVals.length > 0) {
for (Object sVal : sVals) { for (Object sVal : sVals) {
params.add(sKey + "=" + (sVal == null ? "" : sVal)); if(StringUtil.isNotEmpty(sVal)) {
params.add(sKey + "=" +sVal);
}
} }
} else {
params.add(sKey + "=");
} }
/*else {
params.add(sKey + "="); 空值不参与签名
}*/
} }
} }
return StringUtil.join("&", params); return StringUtil.join("&", params);
......
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