feat(core): 完善收银台功能并优化相关配置

- 新增小程序支付方式
- 更新聚合支付名称
- 添加收银台签名接口
- 实现收银台链接创建功能
-优化收银台配置查询
- 修复聚合支付URL生成逻辑- 优化微信授权URL生成格式
This commit is contained in:
DaxPay
2024-12-04 15:12:28 +08:00
parent 554aa7e123
commit 947817e12d
9 changed files with 45 additions and 22 deletions

View File

@@ -75,7 +75,7 @@ public class WechatAuthService {
PlatformConfig platformConfig = platformConfigService.getConfig();
serverUrl = platformConfig.getGatewayMobileUrl();
}
String redirectUrl = StrUtil.format("{}/{}", serverUrl, authPath);
String redirectUrl = StrUtil.format("{}{}", serverUrl, authPath);
return wxMpService.getOAuth2Service().buildAuthorizationUrl(redirectUrl, WxConsts.OAuth2Scope.SNSAPI_BASE, "");
}

View File

@@ -41,7 +41,7 @@ public class WechatCheckoutStrategy extends AbsCheckoutStrategy {
*/
@Override
public String generateAuthUrl(String orderNo) {
String redirectUrl = StrUtil.format("/checkout/wechat/{}", orderNo);
String redirectUrl = StrUtil.format("/aggregate/wechat/{}", orderNo);
return wechatAuthService.generateInnerAuthUrl(redirectUrl);
}