diff --git a/ds-wms-service/DS.WMS.OpApi/Program.cs b/ds-wms-service/DS.WMS.OpApi/Program.cs index 2b194bb4..4f4f2f55 100644 --- a/ds-wms-service/DS.WMS.OpApi/Program.cs +++ b/ds-wms-service/DS.WMS.OpApi/Program.cs @@ -51,7 +51,7 @@ builder.Services.AddDjyModuleInstall();//Djy builder.Services.AddRuleEngineModuleInstall();//Djy规则引擎校验服务 //builder.Services.AddHangfireModuleInstall();//Hangfire服务 -builder.Services.AddHangfireOPInstall();//Hangfire服务 +//builder.Services.AddHangfireOPInstall();//Hangfire服务 builder.Services.AddMQModuleInstall();//MQ // builder.Services.AddEndpointsApiExplorer(); @@ -88,7 +88,7 @@ if (!policyName.IsNullOrEmpty()) app.UseCors(policyName); //添加跨域中间件 } -app.UseHangfireMiddleware(); +//app.UseHangfireMiddleware(); app.UseRouting(); @@ -108,7 +108,7 @@ app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); //await ServiceLocator.Instance.GetService().LoadCommonCache(); -app.UseHangfireServer(); -JobMiddleware.RegisterJob(j => j.GeneratReportAsync(), Cron.Daily(23, 59)); +//app.UseHangfireServer(); +//JobMiddleware.RegisterJob(j => j.GeneratReportAsync(), Cron.Daily(23, 59)); app.Run(); \ No newline at end of file