mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-23 22:11:40 +08:00
简化方法名称
This commit is contained in:
parent
1eb2cc7edd
commit
424337a7a7
@ -129,7 +129,7 @@ public class WxPayConfig {
|
||||
* 微信支付是否使用仿真测试环境
|
||||
* 默认不使用
|
||||
*/
|
||||
public boolean useSandboxForWxPay() {
|
||||
public boolean useSandbox() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -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,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,7 +16,7 @@ public class XmlWxPayConfig extends WxPayConfig {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean useSandboxForWxPay() {
|
||||
public boolean useSandbox() {
|
||||
//沙箱环境不成熟,有问题无法使用,暂时屏蔽掉
|
||||
// return true;
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user