Authored by zhaoqing

清缓存

... ... @@ -45,7 +45,7 @@ public class DrawlineUserQueueRest {
//对当前助力用户进行校验是否是重复助力排队
Boolean existFlag = drawlineUserQueueService.judgeHelpUserExist(drawlineUserQueueReqBO);
if (existFlag){
return new ApiResponse.ApiResponseBuilder().code(9001).message("您已助力,不可重复助力").build();
return new ApiResponse.ApiResponseBuilder().code(9001).message("您已参加过活动,请刷新重试").build();
}
int code = 200;
String message = "操作成功";
... ...
... ... @@ -183,6 +183,8 @@ public class DrawlineUserQueueServiceImpl implements IDrawlineUserQueueService {
logger.warn("addDrawlineUserQueue: fail to addDrawlineUserQueue. uid is {}, activityId is {}, userType is {}", uid, activityId, userType);
throw new ServiceException(900001007, "参加活动排队失败");
}
String redisKeySuffix = uid + ":" + userType + ":" + activityId;
redisValueCache.delete(CacheKeyEnum.DRAWLINE_USERACTIVITY, redisKeySuffix);
//如果首次参加排队活动成功,则进行消息推送
//先判断是否是首次,根据活动ID查询是否只有一条数据
Integer queueCount = drawlineUserQueueDAO.selectHelpUserCount(activityId, uid, null);
... ...