Browse Source

简化方法名称

master
Binary Wang 7 years ago
parent
commit
424337a7a7
3 changed files with 4 additions and 11 deletions
  1. +1
    -1
      weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java
  2. +1
    -1
      weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceImpl.java
  3. +2
    -9
      weixin-java-pay/src/test/java/com/github/binarywang/wxpay/testbase/XmlWxPayConfig.java

+ 1
- 1
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java View File

@@ -129,7 +129,7 @@ public class WxPayConfig {
* 微信支付是否使用仿真测试环境
* 默认不使用
*/
public boolean useSandboxForWxPay() {
public boolean useSandbox() {
return false;
}



+ 1
- 1
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceImpl.java View File

@@ -45,7 +45,7 @@ public class WxPayServiceImpl implements WxPayService {
}

private String getPayBaseUrl() {
if (this.getConfig().useSandboxForWxPay()) {
if (this.getConfig().useSandbox()) {
return PAY_BASE_URL + "/sandboxnew";
}



+ 2
- 9
weixin-java-pay/src/test/java/com/github/binarywang/wxpay/testbase/XmlWxPayConfig.java View File

@@ -2,13 +2,6 @@ package com.github.binarywang.wxpay.testbase;

import com.github.binarywang.wxpay.config.WxPayConfig;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.http.ssl.SSLContexts;

import javax.net.ssl.SSLContext;
import java.io.File;
import java.io.FileInputStream;
import java.security.KeyStore;

@XStreamAlias("xml")
public class XmlWxPayConfig extends WxPayConfig {
@@ -23,9 +16,9 @@ public class XmlWxPayConfig extends WxPayConfig {
}

@Override
public boolean useSandboxForWxPay() {
public boolean useSandbox() {
//沙箱环境不成熟,有问题无法使用,暂时屏蔽掉
// return true;
// return true;
return false;
}
}

Loading…
Cancel
Save