金山WPS在线编辑
This commit is contained in:
@ -36,9 +36,12 @@ public class HttpsUtils {
|
||||
Iterator it = map.entrySet().iterator();
|
||||
postData.append("{");
|
||||
while (it.hasNext()) {
|
||||
if(postData.length()>1){
|
||||
postData.append(",");
|
||||
}
|
||||
Map.Entry pairs = (Map.Entry) it.next();
|
||||
postData.append("\""+pairs.getKey()+"\"").append("=")
|
||||
.append(URLEncoder.encode(pairs != null && pairs.getValue() != null ? "\""+pairs.getValue().toString()+"\"" : "", charSet));
|
||||
.append("\""+pairs.getValue().toString()+"\"");
|
||||
}
|
||||
postData.append("}");
|
||||
System.out.println("请求参数:" + postData);
|
||||
|
Reference in New Issue
Block a user