...
|
...
|
@@ -286,35 +286,29 @@ public class UnionServiceImpl implements IUnionService { |
|
|
|
|
|
log.info("activateUnion with get redis first with key={}, value={}", key, value);
|
|
|
activeUnion.info("activateUnion with get redis first with key={}, value={}", key, value);
|
|
|
if (StringUtils.isNotEmpty(request.getTd())) {
|
|
|
String td = request.getTd();
|
|
|
if (StringUtils.isNotEmpty(td)) {
|
|
|
if (StringUtils.isEmpty(value)) {
|
|
|
key = UNION_KEY + "_" + request.getClientIp() + "_" + request.getTd() + "_" + request.getAppkey();
|
|
|
key = UNION_KEY + "_" + request.getClientIp() + "_" + td + "_" + request.getAppkey();
|
|
|
value = yhValueOperations.get(key);
|
|
|
log.info("activateUnion with get redis first with key={}, value={}", key, value);
|
|
|
}
|
|
|
if (StringUtils.isEmpty(value)) {
|
|
|
String[] arr = request.getTd().split("_");
|
|
|
if (arr.length > 3) {
|
|
|
request.setTd(arr[2] + "_" + arr[3]);
|
|
|
key = UNION_KEY + "_" + request.getClientIp() + "_" + request.getTd() + "_" + request.getAppkey();
|
|
|
td=(arr[2] + "_" + arr[3]);
|
|
|
key = UNION_KEY + "_" + request.getClientIp() + "_" + td + "_" + request.getAppkey();
|
|
|
value = yhValueOperations.get(key);
|
|
|
log.info("activateUnion with get redis second with key={}, value={}", key, value);
|
|
|
activeUnion.info("activateUnion with get redis second with key={}, value={}", key, value);
|
|
|
}
|
|
|
if(arr.length==3){
|
|
|
request.setTd(arr[1]+"_"+arr[2]);
|
|
|
key = UNION_KEY + "_" + request.getClientIp() + "_" + request.getTd() + "_" + request.getAppkey();
|
|
|
td = (arr[1]+"_"+arr[2]);
|
|
|
key = UNION_KEY + "_" + request.getClientIp() + "_" + td + "_" + request.getAppkey();
|
|
|
value = yhValueOperations.get(key);
|
|
|
log.info("activateUnion with get redis third with key={}, value={}", key, value);
|
|
|
activeUnion.info("activateUnion with get redis third with key={}, value={}", key, value);
|
|
|
}
|
|
|
|
|
|
if(arr.length==3){
|
|
|
request.setTd(arr[1]+"_"+arr[2]);
|
|
|
key = UNION_KEY + "_" + request.getClientIp() + "_" + request.getTd() + "_" + request.getAppkey();
|
|
|
value = yhValueOperations.get(key);
|
|
|
log.info("activateUnion with get redis third with key={}, value={}", key, value);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|