优化文件上传、新增加是否自动上传

This commit is contained in:
不做码农
2022-03-22 17:26:53 +08:00
parent 04acf820f7
commit 21a0d27aa9
5 changed files with 24 additions and 36 deletions

View File

@@ -262,7 +262,7 @@ namespace ZR.Tasks
List<JobKey> jobKeys = _scheduler.Result.GetJobKeys(GroupMatcher<JobKey>.GroupEquals(tasksQz.JobGroup)).Result.ToList();
if (jobKeys == null || jobKeys.Count == 0)
{
return new ApiResult(110, $"未找到分组[{ tasksQz.JobGroup }]");
await AddTaskScheduleAsync(tasksQz);
}
var triggers = await _scheduler.Result.GetTriggersOfJob(jobKey);