This commit is contained in:
Vindicator645 2020-03-17 19:57:17 +08:00
parent 4b2d363e85
commit 47d724163f

View File

@ -47,11 +47,12 @@ public class LeavesController {
// 检查是否为JSON // 检查是否为JSON
Optional<JSONObject> json = jsonParameter.getJSONByRequest(request); Optional<JSONObject> 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); UserLeaveRequest LeaveChecker = json.get().toJavaObject(UserLeaveRequest.class);
// 检查类型 // 检查类型
return jsonParameter.getJSONString(request);
} }
//列出某辅导员待审核名单 //列出某辅导员待审核名单