修复小程序红点不消失的问题

This commit is contained in:
wen 2022-02-09 16:43:51 +08:00
parent 8ccb74ffa6
commit b6b4fddb12

View File

@ -235,6 +235,12 @@ public class XhpcMessageBoardServiceImpl implements XhpcMessageBoardService {
//处理下次查询时间
response.setNextQueryTime(nextTimeStr);
response.setData(dataDTOS);
//获取redis中用户未读信息数量将其置为null
String userNotReadCount = "userNotReadMessageCount:" + userQueryCondition.getSenderType() + ":" + userQueryCondition.getSenderAccount() + ":" + "0:" + userQueryCondition.getTenantId();
Object cacheObject = redisService.getCacheObject(userNotReadCount);
if (cacheObject != null) {
redisService.deleteObject(userNotReadCount);
}
return response;
}