mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-02 10:36:57 +00:00
refactor(sdk): 重构 SDK 参数和响应模型
- 更新了多个 SDK 参数和响应模型类的结构 - 优化了字段注解和数据校验 -统一了代码风格,提高了可读性和可维护性
This commit is contained in:
@@ -48,7 +48,7 @@ public class AliPayAuthService {
|
||||
|
||||
// 授权地址
|
||||
String serverUrl = platformConfig.getGatewayMobileUrl();
|
||||
String authUrl = StrUtil.format("{}/alipay/auth/{}/{}/{}/{}",
|
||||
String authUrl = StrUtil.format("{}/auth/alipay/{}/{}/{}/{}",
|
||||
serverUrl, param.getAppId(),param.getChannel(),queryCode,aliPayConfig.getAliAppId());
|
||||
|
||||
return new AuthUrlResult().setAuthUrl(authUrl).setQueryCode(queryCode);
|
||||
|
@@ -55,7 +55,7 @@ public class WechatAuthService {
|
||||
}
|
||||
// 生产链接, 授权成功后重定向h5段用于获取授权码的页面, 获取成功后页面自动关闭
|
||||
String queryCode = RandomUtil.randomString(10);
|
||||
String redirectUrl = StrUtil.format("{}/wechat/auth/{}/{}/{}", serverUrl, param.getAppId(), param.getChannel(), queryCode);
|
||||
String redirectUrl = StrUtil.format("{}/auth/wechat/{}/{}/{}", serverUrl, param.getAppId(), param.getChannel(), queryCode);
|
||||
String authUrl = wxMpService.getOAuth2Service().buildAuthorizationUrl(redirectUrl, WxConsts.OAuth2Scope.SNSAPI_BASE, "");
|
||||
return new AuthUrlResult().setAuthUrl(authUrl).setQueryCode(queryCode);
|
||||
}
|
||||
|
Reference in New Issue
Block a user