diff --git a/src/WMS.Web.Repositories/DependencyInjection/AppBuilder.cs b/src/WMS.Web.Repositories/DependencyInjection/AppBuilder.cs index 966944f9..4f6f65ef 100644 --- a/src/WMS.Web.Repositories/DependencyInjection/AppBuilder.cs +++ b/src/WMS.Web.Repositories/DependencyInjection/AppBuilder.cs @@ -56,7 +56,8 @@ namespace WMS.Web.Repositories.DependencyInjection this.AddOther(); this.AddConfigOptions(); this.AddServiceRepositories(); - //this.AddQuartzService(); + if (!WebHostEnvironment.IsDevelopment()) + this.AddQuartzService(); } /// /// 其它功能注入:AutoMapper等其它