From 3a3c5f5711a57439f34e772313fcbb18ba7885bc Mon Sep 17 00:00:00 2001
From: hudong <Administrator@PC-20250329JZUF>
Date: 星期一, 14 七月 2025 10:31:15 +0800
Subject: [PATCH] 优化

---
 api/WmsSpaHelper.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/api/WmsSpaHelper.cs b/api/WmsSpaHelper.cs
index f114374..636d30b 100644
--- a/api/WmsSpaHelper.cs
+++ b/api/WmsSpaHelper.cs
@@ -2121,7 +2121,7 @@
         }
         private static readonly ObjectCache Cache = MemoryCache.Default;
         private const string CachePrefix = "ClickProtection_";
-        private const int CacheDurationInSeconds = 2;
+        private const int CacheDurationInSeconds = 5;
 
         public static bool IsClickAllowed(string parameter)
         {
@@ -2316,10 +2316,10 @@
        
 
             var result = new SimpleResult();
-            if (!IsClickAllowed(model.cntr_code))
+            if (!IsClickAllowed("1"))
             {
                 // 鎻愮ず鐢ㄦ埛5绉掑唴宸茬偣鍑昏繃
-                result.resultMsg = "鎮ㄥ凡鐐瑰嚮杩囷紝璇�绉掑悗鍐嶈瘯銆�;
+                result.resultMsg = "鎮ㄥ凡鐐瑰嚮杩囷紝璇�绉掑悗鍐嶈瘯銆�;
                 result.resultCode = 1;
                 return result;
             }
@@ -2525,10 +2525,10 @@
         {
 
             var result = new SimpleResult();
-            if (!IsClickAllowed(model.cntr_code))
+            if (!IsClickAllowed("1"))
             {
                 // 鎻愮ず鐢ㄦ埛5绉掑唴宸茬偣鍑昏繃
-                result.resultMsg = "鎮ㄥ凡鐐瑰嚮杩囷紝璇�绉掑悗鍐嶈瘯銆�;
+                result.resultMsg = "鎮ㄥ凡鐐瑰嚮杩囷紝璇�绉掑悗鍐嶈瘯銆�;
                 result.resultCode = 1;
                 return result;
             }

--
Gitblit v1.9.1