hudong
4 天以前 3a3c5f5711a57439f34e772313fcbb18ba7885bc
优化
1个文件已修改
10 ■■■■ 已修改文件
api/WmsSpaHelper.cs 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 = "您已点击过,请2秒后再试。";
                result.resultMsg = "您已点击过,请5秒后再试。";
                result.resultCode = 1;
                return result;
            }
@@ -2525,10 +2525,10 @@
        {
            var result = new SimpleResult();
            if (!IsClickAllowed(model.cntr_code))
            if (!IsClickAllowed("1"))
            {
                // 提示用户5秒内已点击过
                result.resultMsg = "您已点击过,请2秒后再试。";
                result.resultMsg = "您已点击过,请5秒后再试。";
                result.resultCode = 1;
                return result;
            }