|
|
@@ -166,7 +166,7 @@ public class WxUserGrantController extends BaseController { |
|
|
|
|
|
|
|
Object kaptcha = session.getAttribute(Constants.KAPTCHA_SESSION_KEY); |
|
|
|
if(kaptcha == null){ |
|
|
|
return new ResultData(ErrorCode.KAPCHA_NOT_VALID.getCode()); |
|
|
|
return new ResultData(ErrorCode.KAPCHA_NOT_VALID); |
|
|
|
} |
|
|
|
session.removeAttribute(Constants.KAPTCHA_SESSION_KEY); |
|
|
|
if(!kaptcha.toString().equals(code)){ |
|
|
@@ -228,7 +228,7 @@ public class WxUserGrantController extends BaseController { |
|
|
|
} |
|
|
|
Object kaptcha = session.getAttribute(Constants.KAPTCHA_SESSION_KEY); |
|
|
|
if(kaptcha == null){ |
|
|
|
return new ResultData(ErrorCode.KAPCHA_NOT_VALID.getCode()); |
|
|
|
return new ResultData(ErrorCode.KAPCHA_NOT_VALID); |
|
|
|
} |
|
|
|
session.removeAttribute(Constants.KAPTCHA_SESSION_KEY); |
|
|
|
if(!kaptcha.toString().equals(code)){ |
|
|
@@ -371,7 +371,7 @@ public class WxUserGrantController extends BaseController { |
|
|
|
|
|
|
|
Object kaptcha = session.getAttribute(Constants.KAPTCHA_SESSION_KEY); |
|
|
|
if(kaptcha == null){ |
|
|
|
return new ResultData(ErrorCode.KAPCHA_NOT_VALID.getCode()); |
|
|
|
return new ResultData(ErrorCode.KAPCHA_NOT_VALID); |
|
|
|
} |
|
|
|
session.removeAttribute(Constants.KAPTCHA_SESSION_KEY); |
|
|
|
if(!kaptcha.toString().equals(code)){ |
|
|
|