Commit 09339088 authored by Mindfaker's avatar Mindfaker

fix

parent 13726306
...@@ -33,7 +33,7 @@ public class StudentController { ...@@ -33,7 +33,7 @@ public class StudentController {
@PostMapping("add") @PostMapping("add")
public Object add(@RequestBody StudentInfo studentInfo) { public Object add(@RequestBody StudentInfo studentInfo) {
String status = studentInfoService.addStudentInfo(studentInfo); String status = studentInfoService.addStudentInfo(studentInfo);
return status.contains("OK") ? ResponseUtil.ok(status) : ResponseUtil.fail(502, status); return status.contains("OK") ? ResponseUtil.ok(status) : ResponseUtil.fail(503, status);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment