From ac935c5c666bfcb25371589d934305b05f2c6efa Mon Sep 17 00:00:00 2001 From: lixuankun <33336766+lixuankun@users.noreply.github.com> Date: Mon, 13 Jan 2020 18:30:06 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20#1378=20=E4=BF=AE=E5=A4=8D=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E6=9F=A5=E8=AF=A2=E5=88=86=E8=B4=A6?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=8A=A5=E7=AD=BE=E5=90=8D=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxpay/bean/profitsharing/ProfitSharingQueryRequest.java | 5 +++++ .../wxpay/service/impl/ProfitSharingServiceImpl.java | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingQueryRequest.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingQueryRequest.java index 353170b0..583276f3 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingQueryRequest.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/profitsharing/ProfitSharingQueryRequest.java @@ -51,4 +51,9 @@ public class ProfitSharingQueryRequest extends BaseWxPayRequest { protected void checkConstraints() throws WxPayException { this.setSignType(WxPayConstants.SignType.HMAC_SHA256); } + + @Override + public boolean ignoreAppid() { + return true; + } } diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ProfitSharingServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ProfitSharingServiceImpl.java index 114ae023..09e305d1 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ProfitSharingServiceImpl.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/ProfitSharingServiceImpl.java @@ -76,7 +76,6 @@ public class ProfitSharingServiceImpl implements ProfitSharingService { @Override public ProfitSharingQueryResult profitSharingQuery(ProfitSharingQueryRequest request) throws WxPayException { - if (true) throw new WxPayException("暂不支持,微信一直返回签名失败"); request.checkAndSign(this.payService.getConfig()); String url = this.payService.getPayBaseUrl() + "/pay/profitsharingquery";