|
@@ -78,15 +78,10 @@ public class MemberInfoController extends ApiBaseController {
|
|
|
@PostMapping("/memberLogin")
|
|
|
public Object memberLogin(){
|
|
|
ParameterObject obj = getParameterObject();
|
|
|
- System.out.println("登录sessionId:"+getSession().getId());
|
|
|
MemberInfo memberInfo = obj.parseBean(MemberInfo.class);
|
|
|
//获取验证码
|
|
|
- HttpServletRequest request = getRequest();
|
|
|
- HttpSession httpSession = request.getSession();
|
|
|
+ HttpSession httpSession = getSession();
|
|
|
String key = httpSession.getAttribute(Constants.KAPTCHA_SESSION_KEY)+"";
|
|
|
- //验证码验证
|
|
|
-
|
|
|
- System.out.println(key+"---"+memberInfo.getValidateCode());
|
|
|
|
|
|
if(null != key && key.equals(memberInfo.getValidateCode())){
|
|
|
MemberInfo memberInfo1 = iMemberInfoService.memberLogin(memberInfo);
|