RBucket<Object> bucket = REDISSON_CLIENT.getBucket("queryRed" + userId);
if (bucket.isExists()) {
bucket.delete();
resultMap.put("code", 1);
resultMap.put("message", "清除红点");
} else {
resultMap.put("code", 0);
resultMap.put("message", "没红点");
}
RBucket<Object> bucket = REDISSON_CLIENT.getBucket("queryRed" + userId);
if (bucket.isExists()) {
bucket.delete();
resultMap.put("code", 1);
resultMap.put("message", "清除红点");
} else {
resultMap.put("code", 0);
resultMap.put("message", "没红点");
}