Commit 430eddf7 by chamberone

fix: param error

1 parent 281e9eee
......@@ -39,9 +39,16 @@ public class DispatchController {
public Result<?> manualDispatch(
@RequestParam(value = "unimprovedSecondsSpentLimit", required = false) Long unimprovedSecondsSpentLimit,
@RequestParam(value = "secondsSpentLimit", required = false) Long secondsSpentLimit) {
if (null == unimprovedSecondsSpentLimit) {
unimprovedSecondsSpentLimit = 0L;
}
if (null == secondsSpentLimit) {
secondsSpentLimit = 0L;
}
try {
return dispatchService.manualDispatch(unimprovedSecondsSpentLimit, secondsSpentLimit);
} catch (Exception e) {
e.printStackTrace();
return Result.failed(e.getMessage());
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!