|
|
|
@ -64,6 +64,7 @@ public class LocalServerLoginAccountsInterceptor extends HandlerInterceptorAdapt
|
|
|
|
|
@Override |
|
|
|
|
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws CustomerException { |
|
|
|
|
try { |
|
|
|
|
log.info("##########preHandle: 认证开始--------------"); |
|
|
|
|
RequestWrapper myRequestWrapper = new RequestWrapper(request); |
|
|
|
|
String body = myRequestWrapper.getBody(); |
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(body); |
|
|
|
@ -134,6 +135,7 @@ public class LocalServerLoginAccountsInterceptor extends HandlerInterceptorAdapt
|
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
returnJson(response, JSONObject.toJSONString(R.fail(5, "服务异常,请联系管理员"))); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|