代码更新
This commit is contained in:
@@ -7,6 +7,8 @@ import cn.hutool.json.JSONObject;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.modules.common.utils.dto.CurrentUser;
|
||||
import org.nl.modules.system.service.dto.UserDto;
|
||||
import org.nl.modules.system.service.impl.UserServiceImpl;
|
||||
import org.nl.modules.wql.util.SpringContextHolder;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -34,6 +36,8 @@ public class SecurityUtils {
|
||||
currentUser.setId((long) 2);
|
||||
currentUser.setNickName("默认用户");
|
||||
currentUser.setUsername("default");
|
||||
UserDto userDto = SpringContextHolder.getBean(UserServiceImpl.class).findById(2);
|
||||
currentUser.setUser(userDto);
|
||||
return currentUser;
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user