From d0f01f571918ae942349068776fa7fb70f3ab5cd Mon Sep 17 00:00:00 2001
From: hutongqing <hutongqing@hnkhzn.com>
Date: 星期三, 28 八月 2024 16:20:18 +0800
Subject: [PATCH] 更新设备信息表从表导入问题

---
 WIDESEAWCS_Server/WIDESEAWCS_Core/Middlewares/ApiLogMiddleware.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/WIDESEAWCS_Server/WIDESEAWCS_Core/Middlewares/ApiLogMiddleware.cs b/WIDESEAWCS_Server/WIDESEAWCS_Core/Middlewares/ApiLogMiddleware.cs
index d38c961..444b7b8 100644
--- a/WIDESEAWCS_Server/WIDESEAWCS_Core/Middlewares/ApiLogMiddleware.cs
+++ b/WIDESEAWCS_Server/WIDESEAWCS_Core/Middlewares/ApiLogMiddleware.cs
@@ -34,7 +34,7 @@
             //if (AppSettings.app("Middleware", "RequestResponseLog", "Enabled").ObjToBool())
             {
                 // 杩囨护锛屽彧鏈夋帴鍙�
-                if (context.Request.Path.Value.Contains("api"))
+                if (context.Request.Path.Value?.Contains("api") ?? false)
                 {
                     context.Request.EnableBuffering();
                     //Stream originalBody = context.Response.Body;

--
Gitblit v1.9.3