Commit a5ee1fb3 by 阳浪

今日登党务直通收藏量(人)

parent 86ca2f54
......@@ -448,6 +448,12 @@ public class AuthController {
@RequestMapping(value = "/loginApp", produces = {"application/json;charset=utf-8"}, method = RequestMethod.POST)
public Response<String> loginApp(HttpServletRequest request, HttpServletResponse httpResponse,
@ApiParam(name = "user") @RequestBody @Valid LoginInfoVO user, BindingResult validResults) {
try {
boolean flag = accountService.validateCaptcha(user.getCaptchaKey(), user.getCaptchaVal()); //图形码验证
}catch (BizException e){
logger.warn("验证码校验错误:{}" + e);
return Response.fail(e.getCode(),e.getMsg());
}
if (validResults.hasFieldErrors()) {
String error = ValidUtil.convertParamError(validResults.getFieldErrors());
logger.warn("参数校验错误:{}" + error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment