From 73afaa921ba3b00116421e8ff6a89837b33669c9 Mon Sep 17 00:00:00 2001
From: chengsc <Demo@DESKTOP-CPA90BF>
Date: 星期四, 01 八月 2024 14:51:00 +0800
Subject: [PATCH] 修改参观模式申请巷道,储位方法

---
 Wms/Wms/Startup.cs |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/Wms/Wms/Startup.cs b/Wms/Wms/Startup.cs
index dbf35ec..378cf57 100644
--- a/Wms/Wms/Startup.cs
+++ b/Wms/Wms/Startup.cs
@@ -28,6 +28,9 @@
         // This method gets called by the runtime. Use this method to add services to the container.
         public void ConfigureServices(IServiceCollection services)
         {
+            //调用定时任务
+            services.AddHostedService<DailyTaskService>();
+
             services.AddControllers()
                 .AddJsonOptions(options =>
                     {
@@ -132,7 +135,9 @@
             app.UseAuthentication();
             app.UseAuthorization();
             app.UseCors("MyCors");//跨域
-
+            //发布后展示页面
+            app.UseDefaultFiles();
+            app.UseStaticFiles();
 
             app.UseEndpoints(endpoints =>
             {

--
Gitblit v1.8.0