1
0
mirror of synced 2025-12-23 10:39:27 +08:00

🆕 #3077【小程序】增加openApi管理的接口支持

This commit is contained in:
水依寒
2023-07-12 11:04:59 +08:00
committed by GitHub
parent 9bd7940195
commit 831aac31ba
10 changed files with 362 additions and 4 deletions

View File

@@ -209,9 +209,11 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
@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();
}