File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed
main/java/com/github/binarywang/wxpay
test/java/com/github/binarywang/wxpay/testbase Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ public SSLContext getSslContext() {
129129 * 微信支付是否使用仿真测试环境
130130 * 默认不使用
131131 */
132- public boolean useSandboxForWxPay () {
132+ public boolean useSandbox () {
133133 return false ;
134134 }
135135
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public void setConfig(WxPayConfig config) {
4545 }
4646
4747 private String getPayBaseUrl () {
48- if (this .getConfig ().useSandboxForWxPay ()) {
48+ if (this .getConfig ().useSandbox ()) {
4949 return PAY_BASE_URL + "/sandboxnew" ;
5050 }
5151
Original file line number Diff line number Diff line change 22
33import com .github .binarywang .wxpay .config .WxPayConfig ;
44import com .thoughtworks .xstream .annotations .XStreamAlias ;
5- import org .apache .commons .lang3 .builder .ToStringBuilder ;
6- import org .apache .http .ssl .SSLContexts ;
7-
8- import javax .net .ssl .SSLContext ;
9- import java .io .File ;
10- import java .io .FileInputStream ;
11- import java .security .KeyStore ;
125
136@ XStreamAlias ("xml" )
147public class XmlWxPayConfig extends WxPayConfig {
@@ -23,9 +16,9 @@ public void setOpenid(String openid) {
2316 }
2417
2518 @ Override
26- public boolean useSandboxForWxPay () {
19+ public boolean useSandbox () {
2720 //沙箱环境不成熟,有问题无法使用,暂时屏蔽掉
28- // return true;
21+ // return true;
2922 return false ;
3023 }
3124}
You can’t perform that action at this time.
0 commit comments