This commit is contained in:
APLS 2020-03-23 01:10:16 +08:00
parent d853ab365a
commit b913ec36ef

View File

@ -38,7 +38,7 @@ public class OutlookController {
@PostMapping("/saveRandomTime")
public Result saveRandomTime(@RequestParam int cronTime, @RequestParam int crondomTime) {
UsernamePasswordAuthenticationToken authentication = (UsernamePasswordAuthenticationToken) SecurityContextHolder.getContext().getAuthentication();
if (outlookService.saveRandomTime(cronTime,0,0)) {
if (outlookService.saveRandomTime(authentication.getGithub_id(), cronTime, 0, 0)) {
return ResultUtil.success();
}
return ResultUtil.error(ResultEnum.UNKNOWN_ERROR);