tanghc 5 years ago
parent 5d02c8f608
commit eaf501b3d0
  1. 7
      sop-test/src/main/java/com/gitee/sop/test/Client.java

@ -133,7 +133,7 @@ public class Client {
private String url; private String url;
private String method; private String method;
private String version = DEFAULT_VERSION; private String version = DEFAULT_VERSION;
private Map<String, String> bizContent; private Map<String, Object> bizContent;
private HttpTool.HTTPMethod httpMethod; private HttpTool.HTTPMethod httpMethod;
private Map<String, String> header; private Map<String, String> header;
private boolean ignoreSign; private boolean ignoreSign;
@ -181,7 +181,7 @@ public class Client {
* @param bizContent 业务参数 * @param bizContent 业务参数
* @return 返回RequestBuilder * @return 返回RequestBuilder
*/ */
public RequestBuilder bizContent(Map<String, String> bizContent) { public RequestBuilder bizContent(Map<String, Object> bizContent) {
this.bizContent = bizContent; this.bizContent = bizContent;
return this; return this;
} }
@ -227,6 +227,9 @@ public class Client {
*/ */
public RequestBuilder postJson(boolean postJson) { public RequestBuilder postJson(boolean postJson) {
this.postJson = postJson; this.postJson = postJson;
if (postJson) {
this.httpMethod(HttpTool.HTTPMethod.POST);
}
return this; return this;
} }

Loading…
Cancel
Save