正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -78,9 +78,9 @@ public class SameUrlDataInterceptor extends RepeatSubmitInterceptor | @@ -78,9 +78,9 @@ public class SameUrlDataInterceptor extends RepeatSubmitInterceptor | ||
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | // 唯一标识(指定key + 消息头) | 80 | // 唯一标识(指定key + 消息头) |
| 81 | - String cache_repeat_key = Constants.REPEAT_SUBMIT_KEY + submitKey; | 81 | + String cacheRepeatKey = Constants.REPEAT_SUBMIT_KEY + submitKey; |
| 82 | 82 | ||
| 83 | - Object sessionObj = redisCache.getCacheObject(cache_repeat_key); | 83 | + Object sessionObj = redisCache.getCacheObject(cacheRepeatKey); |
| 84 | if (sessionObj != null) | 84 | if (sessionObj != null) |
| 85 | { | 85 | { |
| 86 | Map<String, Object> sessionMap = (Map<String, Object>) sessionObj; | 86 | Map<String, Object> sessionMap = (Map<String, Object>) sessionObj; |
| @@ -95,7 +95,7 @@ public class SameUrlDataInterceptor extends RepeatSubmitInterceptor | @@ -95,7 +95,7 @@ public class SameUrlDataInterceptor extends RepeatSubmitInterceptor | ||
| 95 | } | 95 | } |
| 96 | Map<String, Object> cacheMap = new HashMap<String, Object>(); | 96 | Map<String, Object> cacheMap = new HashMap<String, Object>(); |
| 97 | cacheMap.put(url, nowDataMap); | 97 | cacheMap.put(url, nowDataMap); |
| 98 | - redisCache.setCacheObject(cache_repeat_key, cacheMap, intervalTime, TimeUnit.SECONDS); | 98 | + redisCache.setCacheObject(cacheRepeatKey, cacheMap, intervalTime, TimeUnit.SECONDS); |
| 99 | return false; | 99 | return false; |
| 100 | } | 100 | } |
| 101 | 101 |
-
请 注册 或 登录 后发表评论