volta 2 tahun lalu
induk
melakukan
53fbf180d9

+ 2 - 2
launch-admin/src/main/java/com/webflux/launchadmin/mysql/controller/planNew/PlanNewOutController.java

@@ -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);