解除刷脸用户签约关系接口
解除刷脸用户签约关系接口
https://api.mch.weixin.https://api.mch.weixin.qq.com/v3/offlinefacemch/organizations/{organization_id}/users/user-id/{user_id}/terminate-contractqq.com/v3/offlinefacemch/organizations/{organization_id}/users/user-id/{user_id}/terminate-contract
麻烦提供一下接口的请求参数和返回参数
httpPost.setHeader("Accept", "application/json");
CloseableHttpResponse response = wxPayClient.execute(httpPost);
try {
int statusCode = response.getStatusLine().getStatusCode();//响应状态码
if (statusCode == 200||statusCode==204) {
//解除签约成功
} else {
log.info("解除学生签约关系失败, 返回结果 ,响应码 = " + statusCode);
}
} catch (Exception e) {
log.info("解除学生签约关系失败:{}", e);
throw new Exception("解除学生签约关系失败");
} finally {
response.close();
}
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:254)
at com.wechat.pay.contrib.apache.httpclient.auth.WechatPay2Credentials.buildMessage(WechatPay2Credentials.java:85)
at com.wechat.pay.contrib.apache.httpclient.auth.WechatPay2Credentials.getToken(WechatPay2Credentials.java:58)
at com.wechat.pay.contrib.apache.httpclient.SignatureExec.executeWithSignature(SignatureExec.java:83)
at com.wechat.pay.contrib.apache.httpclient.SignatureExec.execute(SignatureExec.java:61)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
其他接口都可以,就这个接口报错,莫名其妙