diff --git a/src/main/java/com/zteits/oa/configuration/auth/AuthInterceptor.java b/src/main/java/com/zteits/oa/configuration/auth/AuthInterceptor.java index 6a6ef4d..08be2f0 100644 --- a/src/main/java/com/zteits/oa/configuration/auth/AuthInterceptor.java +++ b/src/main/java/com/zteits/oa/configuration/auth/AuthInterceptor.java @@ -84,7 +84,7 @@ public class AuthInterceptor extends HandlerInterceptorAdapter { response.setHeader("Content-type", MIME_JSON); response.setContentType(MIME_JSON); BizResult bizResult = new BizResult<>(); - bizResult.setErrCode(errortype.getCode()); + bizResult.setCode(errortype.getCode()); bizResult.setErrMsg(errortype.getMsg()); response.setStatus(HttpStatus.OK.value()); writer.write(JSONObject.toJSON(bizResult).toString());