Browse Source

🎉 优化用户登录逻辑

test
smallchill 4 years ago
parent
commit
5d2b68a233
  1. 3
      blade-service/blade-user/src/main/java/org/springblade/system/user/service/impl/UserServiceImpl.java

3
blade-service/blade-user/src/main/java/org/springblade/system/user/service/impl/UserServiceImpl.java

@ -173,6 +173,9 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
} }
private UserInfo buildUserInfo(User user, UserEnum userEnum) { private UserInfo buildUserInfo(User user, UserEnum userEnum) {
if (ObjectUtil.isEmpty(user)) {
return null;
}
UserInfo userInfo = new UserInfo(); UserInfo userInfo = new UserInfo();
userInfo.setUser(user); userInfo.setUser(user);
if (Func.isNotEmpty(user)) { if (Func.isNotEmpty(user)) {

Loading…
Cancel
Save