update 修复绑定第三方账号时sys_social表中的tenant_id字段为NULL

This commit is contained in:
yuezj 2023-12-19 15:14:56 +08:00
parent 0ac4a63e91
commit 666bdc4445

View File

@ -74,6 +74,8 @@ public class SysLoginService {
SysSocialBo bo = BeanUtil.toBean(authUserData, SysSocialBo.class);
BeanUtil.copyProperties(authUserData.getToken(), bo);
bo.setUserId(LoginHelper.getUserId());
//绑定当前登录用户租户ID
bo.setTenantId(LoginHelper.getTenantId());
bo.setAuthId(authId);
bo.setOpenId(authUserData.getUuid());
bo.setUserName(authUserData.getUsername());