Browse Source

[退款][修改]

release_toaliyun_real
Stormeye.Wu 7 years ago
parent
commit
a97d0261af
2 changed files with 1 additions and 13 deletions
  1. +0
    -12
      mallinkService/src/main/java/com/simple/domain/po/WxPayAccount.java
  2. +1
    -1
      mallinkService/src/main/java/com/simple/service/impl/WxRefundOrderServiceImpl.java

+ 0
- 12
mallinkService/src/main/java/com/simple/domain/po/WxPayAccount.java View File

@@ -54,9 +54,6 @@ public class WxPayAccount implements Serializable {
/*证书本地存放位置**/
@io.swagger.annotations.ApiModelProperty(value="证书本地存放位置",name="certPath")
private String certPath;
/*证书密码**/
@io.swagger.annotations.ApiModelProperty(value="证书密码",name="certPass")
private String certPass;
public String getMchId() {
return mchId;
}
@@ -82,14 +79,6 @@ public class WxPayAccount implements Serializable {
certPath = _certPath;
}

public String getCertPass() {
return certPass;
}

public void setCertPass(String certPass) {
this.certPass = certPass;
}

public String getPayNotifyUrl() {
return notifyUrl + "/pay";
}
@@ -107,7 +96,6 @@ public class WxPayAccount implements Serializable {
,ApiKey_ASC("`api_key` ASC"),ApiKey_DESC("`api_key` DESC")
,NotifyUrl_ASC("`notify_url` ASC"),NotifyUrl_DESC("`notify_url` DESC")
,CertPath_ASC("`cert_path` ASC"),CertPath_DESC("`cert_path` DESC")
,CertPass_ASC("`cert_pass` ASC"),CertPass_DESC("`cert_pass` DESC")
;
private String value;
Field(String value){


+ 1
- 1
mallinkService/src/main/java/com/simple/service/impl/WxRefundOrderServiceImpl.java View File

@@ -280,7 +280,7 @@ public class WxRefundOrderServiceImpl implements WxRefundOrderService {
signMap.put("sign", signAgent);
String response = null;
try {
response = WxPay.orderRefund(signMap, payAccount.getCertPath(), payAccount.getCertPass());
response = WxPay.orderRefund(signMap, payAccount.getCertPath(), payAccount.getMchId());
} catch (Exception e) {
logger.error("退款异常: " + e.getMessage());
throw new MallinkException(ErrorCode.REFUND_ORDER_ERROR.getCode(), "退款异常");


Loading…
Cancel
Save