mirror of
https://gitee.com/zhijiantianya/ruoyi-vue-pro.git
synced 2026-03-22 05:07:17 +08:00
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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::
|
||||||
|
|||||||
@@ -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::
|
||||||
|
|||||||
Reference in New Issue
Block a user