mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-11-02 04:29:48 +08:00
简化方法名称
This commit is contained in:
@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user