|
|
@@ -183,9 +183,9 @@ public class PlanNewOutController {
|
|
|
throw new BaseException("未获取到计划信息");
|
|
|
}
|
|
|
ListeningPlanNew planInfo = com.alibaba.fastjson.JSONObject.parseObject(planCache.toString(),ListeningPlanNew.class);
|
|
|
- String idKey = RedisKey.DOMAIN_RAND_ID + ":" + planInfo.groupId().toString() + ":" + type.toString();
|
|
|
+ String idKey = RedisKey.DOMAIN_RAND_ID + planInfo.groupId().toString() + ":" + type.toString();
|
|
|
String domainId = stringRedisTemplate.opsForSet().randomMember(idKey);
|
|
|
- if (domainId == null || domainId.isEmpty()){
|
|
|
+ if (domainId.isEmpty()){
|
|
|
throw new BaseException("缓存"+ idKey + "不存在");
|
|
|
}
|
|
|
Object domainInfoCache = stringRedisTemplate.opsForHash().get(RedisKey.DOMAIN_INFO,domainId);
|