Commit 260f1b2f authored by 张永's avatar 张永

1

parent a6b9a65c
...@@ -261,11 +261,15 @@ public class HttpUtil { ...@@ -261,11 +261,15 @@ 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)) {
System.out.println(sKey+"---"+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