diff --git a/Src/Dlhis.ScheduledTask/TaskAssignment/Controllers/HangfireController.cs b/Src/Dlhis.ScheduledTask/TaskAssignment/Controllers/HangfireController.cs index e1c3a8ec..d1569c80 100644 --- a/Src/Dlhis.ScheduledTask/TaskAssignment/Controllers/HangfireController.cs +++ b/Src/Dlhis.ScheduledTask/TaskAssignment/Controllers/HangfireController.cs @@ -1,7 +1,6 @@ using Dlhis.Basic.Api; -using Dlhis.Jip.Api; using Dlhis.Jip.Api.Request; -using Dlhis.Jip.Api.Requests; +using Dlhis.Sys.Api; using Hangfire; using Kurisu.AspNetCore.Cache; using Microsoft.AspNetCore.Authorization; @@ -18,12 +17,12 @@ namespace Dlhis.ScheduledTask.TaskAssignment.Controllers; public class HangfireController : ControllerBase { private readonly RedisCache _redisCache; - private readonly IJinkoJipApi _jinkoJipApi; + private readonly ITenantApi _tenantApi; - public HangfireController(RedisCache redisCache, IJinkoJipApi jinkoJipApi) + public HangfireController(RedisCache redisCache, ITenantApi tenantApi) { _redisCache = redisCache; - _jinkoJipApi = jinkoJipApi; + _tenantApi = tenantApi; } /// @@ -58,15 +57,10 @@ public class HangfireController : ControllerBase } } + [AllowAnonymous] [HttpPost("test")] public async Task TestAsync() { - return await _jinkoJipApi.SyncMealSupplementRecordsAsync(new List() - { - new() - { - UniqueId = "Dl-Test01", Msg = "成功", Status = "SUCCESS" - } - }); + return await _tenantApi.GetTenantsInternalAsync(); } } \ No newline at end of file