mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 23:13:40 +08:00
fix ##I8WCQ8 定时任务添加本地任务时,不应该显示HTTPPOST
This commit is contained in:
parent
804a759d46
commit
875af85927
@ -2,7 +2,6 @@
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Infrastructure;
|
using Infrastructure;
|
||||||
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
|
||||||
using OpenAuth.Repository.Domain;
|
using OpenAuth.Repository.Domain;
|
||||||
using Quartz;
|
using Quartz;
|
||||||
|
|
||||||
|
@ -102,7 +102,9 @@ namespace OpenAuth.App
|
|||||||
.SelectMany(a => a.GetTypes().Where(t => t.GetInterfaces()
|
.SelectMany(a => a.GetTypes().Where(t => t.GetInterfaces()
|
||||||
.Contains(typeof(IJob))))
|
.Contains(typeof(IJob))))
|
||||||
.ToArray();
|
.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)
|
public void ChangeJobStatus(ChangeJobStatusReq req)
|
||||||
|
Loading…
Reference in New Issue
Block a user