记得上下班打卡 | git大法好,push需谨慎

Commit 2c7e4965 authored by jiangxiulong's avatar jiangxiulong

增加删除预约redis

parent e372406a
......@@ -137,6 +137,7 @@ public class SweetAppletSubMsgServiceImpl extends ServiceImpl<SweetAppletSubMsgM
// 发送订阅消息接口
boolean subMessage = sendSubMessage(info, targetId, title, timeStart);
if (subMessage) {
redisActivityUtils.delSubscribe(info.getOpenId(), targetId);
msgIdList.add(msgId);
}
} catch (Exception e) {
......
......@@ -68,4 +68,11 @@ public class RedisActivityUtils {
}
}
public void delSubscribe(String openId, String targetId) {
String redisKey = SweetConstant.REDIS_KEY_SWEET_PERFORM_SUBSCRIBE
.concat(openId)
.concat(":")
.concat(targetId);
redisUtil.del(redisKey);
}
}
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