Commit 09efb476 authored by Mindfaker's avatar Mindfaker

fix

parent 7d5fd659
...@@ -25,7 +25,7 @@ public class PointController { ...@@ -25,7 +25,7 @@ public class PointController {
} }
@GetMapping("add") @PostMapping("add")
public Object add(@RequestBody StudentPointInfo pointInfo) { public Object add(@RequestBody StudentPointInfo pointInfo) {
String status = pointService.addPoint(pointInfo); String status = pointService.addPoint(pointInfo);
return status.contains("OK") ? ResponseUtil.ok(status) : ResponseUtil.fail(502, status); return status.contains("OK") ? ResponseUtil.ok(status) : ResponseUtil.fail(502, 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