YunaiV
2025-11-29 09:58:32 +08:00
parent 86de468413
commit f7042897ff
3 changed files with 13 additions and 1 deletions

View File

@@ -65,7 +65,7 @@ public class SocialClientSaveReqVO {
@JsonIgnore @JsonIgnore
public boolean isPublicKeyValid() { public boolean isPublicKeyValid() {
// 如果是支付宝,必须填写 publicKey 属性 // 如果是支付宝,必须填写 publicKey 属性
return !Objects.equals(socialType, SocialTypeEnum.ALIPAY.getType()) return !Objects.equals(socialType, SocialTypeEnum.ALIPAY_MINI_PROGRAM.getType())
|| !StrUtil.isEmpty(publicKey); || !StrUtil.isEmpty(publicKey);
} }

View File

@@ -198,6 +198,12 @@ justauth:
client-id: ${wx.mp.app-id} client-id: ${wx.mp.app-id}
client-secret: ${wx.mp.secret} client-secret: ${wx.mp.secret}
ignore-check-redirect-uri: true ignore-check-redirect-uri: true
ALIPAY: # 支付宝小程序
client-id: xx
client-secret: xx
alipay-public-key: xx
ignore-check-redirect-uri: true
ignore-check-state: true
cache: cache:
type: REDIS type: REDIS
prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE:: prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::

View File

@@ -262,6 +262,12 @@ justauth:
client-id: ${wx.mp.app-id} client-id: ${wx.mp.app-id}
client-secret: ${wx.mp.secret} client-secret: ${wx.mp.secret}
ignore-check-redirect-uri: true ignore-check-redirect-uri: true
ALIPAY: # 支付宝小程序
client-id: xx
client-secret: xx
alipay-public-key: xx
ignore-check-redirect-uri: true
ignore-check-state: true
cache: cache:
type: REDIS type: REDIS
prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE:: prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::