From 6e7db4f418e23527cf62fadffbdc0a64199cc361 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Fri, 17 Oct 2025 21:39:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(system/auth):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=BC=80=E6=94=BE=E5=B9=B3=E5=8F=B0=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=85=8D=E7=BD=AE=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/config/application-dev.yml | 4 ++++ .../src/main/resources/config/application-prod.yml | 4 ++++ .../top/continew/admin/system/enums/SocialSourceEnum.java | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/continew-server/src/main/resources/config/application-dev.yml b/continew-server/src/main/resources/config/application-dev.yml index ed79fc34..6a5ad094 100644 --- a/continew-server/src/main/resources/config/application-dev.yml +++ b/continew-server/src/main/resources/config/application-dev.yml @@ -238,6 +238,10 @@ sa-token.extension: justauth: enabled: true type: + WECHAT_OPEN: + client-id: wx4a**********bcc2 + client-secret: 32e5*************************1ef + redirect-uri: ${application.url}/social/callback?source=wechat_open GITEE: client-id: 5d271b7f638941812aaf8bfc2e2f08f06d6235ef934e0e39537e2364eb8452c4 client-secret: 1f7d08**********5b7**********29e diff --git a/continew-server/src/main/resources/config/application-prod.yml b/continew-server/src/main/resources/config/application-prod.yml index 03218cbe..27548891 100644 --- a/continew-server/src/main/resources/config/application-prod.yml +++ b/continew-server/src/main/resources/config/application-prod.yml @@ -240,6 +240,10 @@ sa-token.extension: justauth: enabled: true type: + WECHAT_OPEN: + client-id: wx4a**********bcc2 + client-secret: 32e5*************************1ef + redirect-uri: ${application.url}/social/callback?source=wechat_open GITEE: client-id: 5d271b7f638941812aaf8bfc2e2f08f06d6235ef934e0e39537e2364eb8452c4 client-secret: 1f7d08**********5b7**********29e diff --git a/continew-system/src/main/java/top/continew/admin/system/enums/SocialSourceEnum.java b/continew-system/src/main/java/top/continew/admin/system/enums/SocialSourceEnum.java index f80a9799..01a0ce3f 100644 --- a/continew-system/src/main/java/top/continew/admin/system/enums/SocialSourceEnum.java +++ b/continew-system/src/main/java/top/continew/admin/system/enums/SocialSourceEnum.java @@ -29,6 +29,11 @@ import lombok.RequiredArgsConstructor; @RequiredArgsConstructor public enum SocialSourceEnum { + /** + * 微信 + */ + WECHAT_OPEN("微信"), + /** * 码云 */