Commit f8b847a8 authored by hezhen's avatar hezhen

123

parent f5249af7
...@@ -92,7 +92,8 @@ public class WeChatH5LoginInterceptor extends HandlerInterceptorAdapter { ...@@ -92,7 +92,8 @@ public class WeChatH5LoginInterceptor extends HandlerInterceptorAdapter {
String redisLockKey=null; String redisLockKey=null;
if (StringUtils.isNotBlank(jb)){ if (StringUtils.isNotBlank(jb)){
redisLockKey= RedisKey.CONSTANT_CODE_PREFIX + UUID.randomUUID(); redisLockKey= RedisKey.CONSTANT_CODE_PREFIX + UUID.randomUUID();
Boolean suc = summbitRedisTemplate.opsForValue().setIfAbsent(redisLockKey, jb); log.info("-----jb====="+jb.toString());
Boolean suc = summbitRedisTemplate.opsForValue().setIfAbsent(redisLockKey, jb.toString());
if (suc) { if (suc) {
summbitRedisTemplate.expire(redisLockKey, 5, TimeUnit.MINUTES);//5分钟内过期 summbitRedisTemplate.expire(redisLockKey, 5, TimeUnit.MINUTES);//5分钟内过期
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment