请求:
HttpPost httpPost = new HttpPost("https://api.mch.weixin.qq.com/v3/offlinefacemch/organizations/O004ABC8FZ2023031514461460894a/users/user-id/FU43BFC8Zadef08c2c20230417171246/terminate-contract");
httpPost.setHeader("Accept", "application/json");
CloseableHttpResponse response = wxPayClient.execute(httpPost);
后台爆的日志:
java.lang.IllegalArgumentException: Entity may not be null
at org.apache.http.util.Args.notNull(Args.java:54)
at org.apache.http.util.EntityUtils.toString(EntityUtils.java:307)
接口请求还没到微信侧,应该是代码的问题。建议按照文档规范,并根据日志定位问题。
这个接口既然走POST方法,就应该把参数放body里面,而不是放url上
痛苦,卡这个接口一周了,我该怎么办;感觉人生没了希望