Commit 56fc1121 authored by hezhen's avatar hezhen

Merge branch 'master_activity' into base-modify

parents 2adfca69 fa38b549
......@@ -94,8 +94,8 @@ public class JsTicketService {
ehcache.put(element);*/
log.info("----jsTicket===="+jsTicket);
JSONObject obj = new JSONObject();
obj.put(key, jsTicket);
summbitRedisTemplate.delete(key);
log.info("----obj===="+obj.toJSONString());
Boolean suc=summbitRedisTemplate.opsForValue().setIfAbsent(key, obj.toJSONString());
if (suc) {
summbitRedisTemplate.expire(wy_appid, jsTicket.getExpiresIn(), TimeUnit.MINUTES);
......@@ -119,4 +119,5 @@ public class JsTicketService {
}
}
\ No newline at end of file
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