| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.doumee.config.jwt.JwtTokenUtil; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.vo.WebLoginUserVO; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.context.request.RequestContextHolder; |
| | |
| | | * 获取登录用户对象信息 |
| | | * @return |
| | | */ |
| | | protected Member getMemberResponse(){ |
| | | protected WebLoginUserVO getMemberResponse(){ |
| | | Object obj = this.getRequest().getAttribute(JwtTokenUtil.MEMBER_INFO); |
| | | if(obj != null){ |
| | | return JSONObject.parseObject(obj.toString(),Member.class); |
| | | return JSONObject.parseObject(obj.toString(), WebLoginUserVO.class); |
| | | } |
| | | return null; |
| | | } |