fix(服务号通知):微信开放平台unionId获取服务号openId逻辑
This commit is contained in:
+1
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user