| | |
| | | import com.xcong.farmer.cms.modules.system.entity.UserEntity; |
| | | import com.xcong.farmer.cms.modules.system.mapper.UserMapper; |
| | | import com.xcong.farmer.cms.modules.system.service.ICommonService; |
| | | import com.xcong.farmer.cms.modules.system.util.LoginUserUtil; |
| | | import com.xcong.farmer.cms.utils.MessageSourceUtils; |
| | | import com.xcong.farmer.cms.utils.RedisUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Result memberLogout(Long id) { |
| | | public Result memberLogout() { |
| | | Long id = LoginUserUtil.getLoginUser().getId(); |
| | | //获取用户ID |
| | | UserEntity userEntity = userMapper.selectById(id); |
| | | if (ObjectUtil.isEmpty(userEntity)) { |