fix ##I8WCQ8 定时任务添加本地任务时,不应该显示HTTPPOST

This commit is contained in:
wintel
2024-01-15 21:33:36 +08:00
parent 804a759d46
commit 875af85927
2 changed files with 3 additions and 2 deletions

View File

@@ -102,7 +102,9 @@ namespace OpenAuth.App
.SelectMany(a => a.GetTypes().Where(t => t.GetInterfaces()
.Contains(typeof(IJob))))
.ToArray();
return types.Select(u => u.FullName).ToList();
//过滤掉httppost的定时任务
var noHttpPostType = types.Where(u =>u.UnderlyingSystemType!=typeof(OpenAuth.App.Jobs.HttpPostJob));
return noHttpPostType.Select(u => u.FullName).ToList();
}
public void ChangeJobStatus(ChangeJobStatusReq req)