简化方法名称

This commit is contained in:
Binary Wang
2017-05-03 17:45:37 +08:00
parent 1eb2cc7edd
commit 424337a7a7
3 changed files with 4 additions and 11 deletions

View File

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

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";
}