Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
🎨 #3038 v3接口不支持v2沙箱
  • Loading branch information
shuiyihan12 committed Jul 11, 2023
commit aa413a3d8db45a1afc039edf003c0b2b7016a4cc
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,11 @@ public WxPayService switchoverTo(String mchId) {
@Override
public String getPayBaseUrl() {
if (this.getConfig().isUseSandboxEnv()) {
if (StringUtils.isNotBlank(this.getConfig().getApiV3Key())) {
throw new WxRuntimeException("微信支付V3 目前不支持沙箱模式!");
}
return this.getConfig().getPayBaseUrl() + "/xdc/apiv2sandbox";
}

return this.getConfig().getPayBaseUrl();
}

Expand Down