Date: Wed, 31 Jan 2024 17:11:57 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B8=85=E7=A9=BA?=
=?UTF-8?q?=E8=AE=A1=E6=95=B0=E5=99=A8=E6=89=A7=E8=A1=8C=E4=BD=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/Gateway/BackgroundServices/GatewayBackground.cs | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/Gateway/BackgroundServices/GatewayBackground.cs b/src/Gateway/BackgroundServices/GatewayBackground.cs
index cbc9afa..4db3a71 100644
--- a/src/Gateway/BackgroundServices/GatewayBackground.cs
+++ b/src/Gateway/BackgroundServices/GatewayBackground.cs
@@ -48,12 +48,11 @@ public class GatewayBackgroundService(
ErrorRequestCount = GatewayMiddleware.CurrentErrorCount,
CurrentTime = DateTime.Now.AddDays(-1)
};
-
- await freeSql.Insert(systemLoggerEntity).ExecuteAffrowsAsync();
-
+
// 清空请求计数器
GatewayMiddleware.ClearRequestCount();
-
+
+ await freeSql.Insert(systemLoggerEntity).ExecuteAffrowsAsync();
}
}
}
\ No newline at end of file
--
Gitee