#355 修复为支持拉取订单评价数据接口而引入的签名bug

This commit is contained in:
Binary Wang
2017-10-17 17:40:33 +08:00
parent 447c73e43a
commit 64f0e7cf6b
11 changed files with 168 additions and 108 deletions

View File

@@ -36,6 +36,7 @@ public class WxPayConfig {
private String subMchId;
private String notifyUrl;
private String tradeType;
private String signType;
private SSLContext sslContext;
private String keyPath;
private boolean useSandboxEnv = false;
@@ -139,6 +140,19 @@ public class WxPayConfig {
this.tradeType = tradeType;
}
/**
* 签名方式
* 有两种HMAC_SHA256 和MD5
* @see com.github.binarywang.wxpay.constant.WxPayConstants.SignType
*/
public String getSignType() {
return this.signType;
}
public void setSignType(String signType) {
this.signType = signType;
}
public SSLContext getSslContext() {
return this.sslContext;
}