From 856e16beff5d11af6751f3c02f9dee80703aa4c9 Mon Sep 17 00:00:00 2001 From: pigeon Date: Sun, 7 Jun 2026 16:13:09 +0800 Subject: [PATCH] =?UTF-8?q?docs(nacos):=20=E7=94=A8=20app.wechat/app.alipa?= =?UTF-8?q?y=20=E6=9B=BF=E4=BB=A3=20social.*=20=E9=85=8D=E7=BD=AE=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 配合 OAuth2ServerConfig 重构: - social.wechat.app-id/secret → app.wechat.app-id/secret - social.alipay.app-id/private-key/public-key → app.alipay.* - 新增 app.alipay.app-key (AlipayApiClient 预留扩展) --- backend/config-templates/nacos/rui-auth.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/backend/config-templates/nacos/rui-auth.yaml b/backend/config-templates/nacos/rui-auth.yaml index bc99a7c..6039426 100644 --- a/backend/config-templates/nacos/rui-auth.yaml +++ b/backend/config-templates/nacos/rui-auth.yaml @@ -6,10 +6,11 @@ server: port: 9301 -# 社交登录配置(微信、支付宝) -# 应用启动时由 OAuth2ServerConfig 通过 @Value 注入到 WechatApiClient / AlipayApiClient +# 第三方应用通用配置 +# 字段定义见 com.rui.common.core.properties.AppProperties +# 每个第三方应用一份独立配置(prefix = app.<平台名>) # 留空表示对应登录方式未启用(Provider 仍会注册,但调用时会失败) -social: +app: wechat: # 微信开放平台 AppID app-id: ${WECHAT_APP_ID:} @@ -18,6 +19,8 @@ social: alipay: # 支付宝开放平台 AppID app-id: ${ALIPAY_APP_ID:} + # 应用 Key(部分平台如支付宝使用) + app-key: ${ALIPAY_APP_KEY:} # 应用私钥(用于请求签名,RSA2) private-key: ${ALIPAY_PRIVATE_KEY:} # 支付宝公钥(用于响应验签)