From eaf501b3d0973c75cfcaf55acff2c71b825d5379 Mon Sep 17 00:00:00 2001 From: tanghc Date: Thu, 19 Dec 2019 12:02:02 +0800 Subject: [PATCH] 2.5.7 --- sop-test/src/main/java/com/gitee/sop/test/Client.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sop-test/src/main/java/com/gitee/sop/test/Client.java b/sop-test/src/main/java/com/gitee/sop/test/Client.java index 398996c7..3d641df8 100644 --- a/sop-test/src/main/java/com/gitee/sop/test/Client.java +++ b/sop-test/src/main/java/com/gitee/sop/test/Client.java @@ -133,7 +133,7 @@ public class Client { private String url; private String method; private String version = DEFAULT_VERSION; - private Map bizContent; + private Map bizContent; private HttpTool.HTTPMethod httpMethod; private Map header; private boolean ignoreSign; @@ -181,7 +181,7 @@ public class Client { * @param bizContent 业务参数 * @return 返回RequestBuilder */ - public RequestBuilder bizContent(Map bizContent) { + public RequestBuilder bizContent(Map bizContent) { this.bizContent = bizContent; return this; } @@ -227,6 +227,9 @@ public class Client { */ public RequestBuilder postJson(boolean postJson) { this.postJson = postJson; + if (postJson) { + this.httpMethod(HttpTool.HTTPMethod.POST); + } return this; }