From 47d724163ffec5104b910597dbca4684b1d790b3 Mon Sep 17 00:00:00 2001 From: Vindicator645 <45960487+Vindicator645@users.noreply.github.com> Date: Tue, 17 Mar 2020 19:57:17 +0800 Subject: [PATCH] jason --- .../java/com/codesdream/ase/controller/LeavesController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/codesdream/ase/controller/LeavesController.java b/src/main/java/com/codesdream/ase/controller/LeavesController.java index 9ad7eb1..6b19fc6 100644 --- a/src/main/java/com/codesdream/ase/controller/LeavesController.java +++ b/src/main/java/com/codesdream/ase/controller/LeavesController.java @@ -47,11 +47,12 @@ public class LeavesController { // 检查是否为JSON Optional json = jsonParameter.getJSONByRequest(request); - if(!json.isPresent()) return jsonParameter.getJSONString(new FailedSONRespond()); + // if(!json.isPresent()) return jsonParameter.getJSONString(new FailedSONRespond()); UserLeaveRequest LeaveChecker = json.get().toJavaObject(UserLeaveRequest.class); // 检查类型 + return jsonParameter.getJSONString(request); } //列出某辅导员待审核名单