fix(服务号通知):微信开放平台unionId获取服务号openId逻辑

This commit is contained in:
2025-04-28 10:49:53 +08:00
parent 29ed66e0e3
commit 812cc5b4e3
11 changed files with 148 additions and 34 deletions
@@ -78,6 +78,7 @@ public class TencentAuthenticationProvider extends BaseAuthenticationProvider {
try {
String openId = wxLoginResult.get("openid").toString();
String sessionKey = wxLoginResult.get("session_key").toString();
log.info("openId:{},sessionKey:{},res:{}", openId, sessionKey,wxLoginResult);
String unionId = wxLoginResult.get("unionid").toString();
String mobile = decryptPhoneNumber(encryptedData,sessionKey,iv);
userDetails = userDetailsServiceFactory.getService(authToken).loadUserByWxOpenId(openId,mobile, unionId);
+4 -4
View File
@@ -8,10 +8,10 @@ server:
spring:
application:
name: uaa-server
# cloud:
# nacos:
# discovery:
# ip: 124.222.128.40
cloud:
nacos:
discovery:
ip: 124.222.128.40
encrypt:
key-store: