fix(服务号通知):微信开放平台unionId获取服务号openId逻辑
This commit is contained in:
+7
-2
@@ -85,8 +85,13 @@ public class SysUserServiceImpl extends SuperServiceImpl<SysUserMapper, SysUser>
|
||||
sysUser.setEnabled(Boolean.TRUE);
|
||||
sysUser.setMobile(mobile);
|
||||
sysUser.setUnionId(unionId);
|
||||
}else if (ObjectUtils.isEmpty(sysUser.getMobile()) && StringUtils.isNotEmpty(mobile)) {
|
||||
sysUser.setMobile(mobile);
|
||||
}else {
|
||||
if (ObjectUtils.isEmpty(sysUser.getMobile()) && StringUtils.isNotEmpty(mobile)) {
|
||||
sysUser.setMobile(mobile);
|
||||
}
|
||||
if (ObjectUtils.isEmpty(sysUser.getUnionId()) && StringUtils.isNotEmpty(unionId)) {
|
||||
sysUser.setUnionId(unionId);
|
||||
}
|
||||
}
|
||||
String username = sysUser.getUsername();
|
||||
boolean result = super.saveOrUpdateIdempotency(sysUser, lock
|
||||
|
||||
@@ -4,10 +4,10 @@ server:
|
||||
spring:
|
||||
application:
|
||||
name: user-center
|
||||
# cloud:
|
||||
# nacos:
|
||||
# discovery:
|
||||
# ip: 124.222.128.40
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
ip: 124.222.128.40
|
||||
# cloud:
|
||||
# nacos:
|
||||
# discovery:
|
||||
|
||||
Reference in New Issue
Block a user