소스 검색

拦截器修改

lyr 8 년 전
부모
커밋
3f039b23d2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/yihu/wlyy/interceptors/PatientInterceptor.java

+ 1 - 1
src/main/java/com/yihu/wlyy/interceptors/PatientInterceptor.java

@ -25,7 +25,7 @@ public class PatientInterceptor extends BaseInterceptor {
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
		boolean flag = true;
		try {
			if(request.getRequestURI().equals("/wlyy/patient/hosptail/getHositalByTownCode")){
			if(request.getRequestURI().contains("/patient/hosptail/getHositalByTownCode")){
				return true;
			}
			response.setCharacterEncoding("UTF-8");