B端登录bug

This commit is contained in:
lihongbiao 2025-08-02 12:39:28 +08:00
parent b47e7a730a
commit 745560969d

View File

@ -45,7 +45,7 @@ public class BUserDetailsService implements UserDetailsService {
userDto.setEnabled(true); userDto.setEnabled(true);
userDto.setIsAdmin(false); userDto.setIsAdmin(false);
// 创建一个 JwtCustomerDto 对象 // 创建一个 JwtCustomerDto 对象
customerDto = new JwtUserDto(userDto, UserTypeEnum.CUSTOMER, new ArrayList<>(), customerDto.getCustomerType()); customerDto = new JwtUserDto(userDto, UserTypeEnum.CUSTOMER, new ArrayList<>(), customer.getCustomerType());
// 添加缓存数据 // 添加缓存数据
userCacheManager.addCustomerCache(username, customerDto); userCacheManager.addCustomerCache(username, customerDto);
} }