liupeng 4 years ago
parent
commit
7511ceb979

+ 1 - 2
code/sapparent/sapcms/src/main/java/org/fouram/controller/ControllerExceptionHandler.java

@@ -26,9 +26,8 @@ public class ControllerExceptionHandler {
 		log.error(getExceptionAllInformation(ex));
 		if (ex.getClass().getSimpleName().equals(WxErrorException.class.getSimpleName())) {
 			return AppUtil.error(ex.getMessage());
-		}else {
-			return AppUtil.error(ResultConstant.WEB_ERR_MSG);
 		}
+		return AppUtil.error(ResultConstant.WEB_ERR_MSG);
 	}
 
 	private static String getExceptionAllInformation(Throwable e) {