Showing
1 changed file
with
7 additions
and
13 deletions
@@ -286,35 +286,29 @@ public class UnionServiceImpl implements IUnionService { | @@ -286,35 +286,29 @@ public class UnionServiceImpl implements IUnionService { | ||
286 | 286 | ||
287 | log.info("activateUnion with get redis first with key={}, value={}", key, value); | 287 | log.info("activateUnion with get redis first with key={}, value={}", key, value); |
288 | activeUnion.info("activateUnion with get redis first with key={}, value={}", key, value); | 288 | activeUnion.info("activateUnion with get redis first with key={}, value={}", key, value); |
289 | - if (StringUtils.isNotEmpty(request.getTd())) { | 289 | + String td = request.getTd(); |
290 | + if (StringUtils.isNotEmpty(td)) { | ||
290 | if (StringUtils.isEmpty(value)) { | 291 | if (StringUtils.isEmpty(value)) { |
291 | - key = UNION_KEY + "_" + request.getClientIp() + "_" + request.getTd() + "_" + request.getAppkey(); | 292 | + key = UNION_KEY + "_" + request.getClientIp() + "_" + td + "_" + request.getAppkey(); |
292 | value = yhValueOperations.get(key); | 293 | value = yhValueOperations.get(key); |
293 | log.info("activateUnion with get redis first with key={}, value={}", key, value); | 294 | log.info("activateUnion with get redis first with key={}, value={}", key, value); |
294 | } | 295 | } |
295 | if (StringUtils.isEmpty(value)) { | 296 | if (StringUtils.isEmpty(value)) { |
296 | String[] arr = request.getTd().split("_"); | 297 | String[] arr = request.getTd().split("_"); |
297 | if (arr.length > 3) { | 298 | if (arr.length > 3) { |
298 | - request.setTd(arr[2] + "_" + arr[3]); | ||
299 | - key = UNION_KEY + "_" + request.getClientIp() + "_" + request.getTd() + "_" + request.getAppkey(); | 299 | + td=(arr[2] + "_" + arr[3]); |
300 | + key = UNION_KEY + "_" + request.getClientIp() + "_" + td + "_" + request.getAppkey(); | ||
300 | value = yhValueOperations.get(key); | 301 | value = yhValueOperations.get(key); |
301 | log.info("activateUnion with get redis second with key={}, value={}", key, value); | 302 | log.info("activateUnion with get redis second with key={}, value={}", key, value); |
302 | activeUnion.info("activateUnion with get redis second with key={}, value={}", key, value); | 303 | activeUnion.info("activateUnion with get redis second with key={}, value={}", key, value); |
303 | } | 304 | } |
304 | if(arr.length==3){ | 305 | if(arr.length==3){ |
305 | - request.setTd(arr[1]+"_"+arr[2]); | ||
306 | - key = UNION_KEY + "_" + request.getClientIp() + "_" + request.getTd() + "_" + request.getAppkey(); | 306 | + td = (arr[1]+"_"+arr[2]); |
307 | + key = UNION_KEY + "_" + request.getClientIp() + "_" + td + "_" + request.getAppkey(); | ||
307 | value = yhValueOperations.get(key); | 308 | value = yhValueOperations.get(key); |
308 | log.info("activateUnion with get redis third with key={}, value={}", key, value); | 309 | log.info("activateUnion with get redis third with key={}, value={}", key, value); |
309 | activeUnion.info("activateUnion with get redis third with key={}, value={}", key, value); | 310 | activeUnion.info("activateUnion with get redis third with key={}, value={}", key, value); |
310 | } | 311 | } |
311 | - | ||
312 | - if(arr.length==3){ | ||
313 | - request.setTd(arr[1]+"_"+arr[2]); | ||
314 | - key = UNION_KEY + "_" + request.getClientIp() + "_" + request.getTd() + "_" + request.getAppkey(); | ||
315 | - value = yhValueOperations.get(key); | ||
316 | - log.info("activateUnion with get redis third with key={}, value={}", key, value); | ||
317 | - } | ||
318 | } | 312 | } |
319 | } | 313 | } |
320 | 314 |
-
Please register or login to post a comment