| | |
| | | package com.ruoyi.common.utils; |
| | | |
| | | import com.ruoyi.common.core.domain.model.LoginUserApplet; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.security.core.Authentication; |
| | | import org.springframework.security.core.context.SecurityContextHolder; |
| | | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; |
| | |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @Slf4j |
| | | public class SecurityUtils |
| | | { |
| | | /** |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | throw new ServiceException("获取用户账户异常", HttpStatus.UNAUTHORIZED); |
| | | log.error("获取用户信息发生异常",e); |
| | | // throw new ServiceException("获取用户账户异常", HttpStatus.UNAUTHORIZED); |
| | | } |
| | | return ""; |
| | | } |
| | | /** |
| | | * 获取用户账户小程序 |