|
|
@@ -138,23 +138,27 @@ public class RankServiceImpl implements RankService {
|
|
|
}
|
|
|
|
|
|
private String getRankStrategyCode(ScoreParam scoreParam) {
|
|
|
- if (CollectionUtils.isNotEmpty(rankRootSessionIdConfig)) {
|
|
|
- Long appType = scoreParam.getAppType();
|
|
|
- String rootSessionId = scoreParam.getRootSessionId();
|
|
|
- if (null != appType && null != rootSessionId) {
|
|
|
- String tail = rootSessionIdUtil.getTail(rootSessionId);
|
|
|
- if (null != tail) {
|
|
|
- for (RootSessionIdExpConfig item : rankRootSessionIdConfig) {
|
|
|
- if (null != item.getAppType() && null != item.getTail()) {
|
|
|
- if (item.getAppType().contains(appType) && item.getTail().contains(tail)) {
|
|
|
- if (null != item.getConfig() && item.getConfig().containsKey("rank")) {
|
|
|
- return item.getConfig().get("rank");
|
|
|
+ try {
|
|
|
+ if (CollectionUtils.isNotEmpty(rankRootSessionIdConfig)) {
|
|
|
+ Long appType = scoreParam.getAppType();
|
|
|
+ String rootSessionId = scoreParam.getRootSessionId();
|
|
|
+ if (null != appType && null != rootSessionId) {
|
|
|
+ String tail = rootSessionIdUtil.getTail(rootSessionId);
|
|
|
+ if (null != tail) {
|
|
|
+ for (RootSessionIdExpConfig item : rankRootSessionIdConfig) {
|
|
|
+ if (null != item.getAppType() && null != item.getTail()) {
|
|
|
+ if (item.getAppType().contains(appType) && item.getTail().contains(tail)) {
|
|
|
+ if (null != item.getConfig() && item.getConfig().containsKey("rank")) {
|
|
|
+ return item.getConfig().get("rank");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("排序rootSessionId尾号配置异常", e);
|
|
|
}
|
|
|
return scoreParam.getExpCode();
|
|
|
}
|