Commit 3c50c51d by 吴博

feat:[1006818] 斗罗

parent 9cd97618
......@@ -325,6 +325,8 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
@Value("${nft.bookGroupId}")
private Long nftBookGroupId;
public static final String nftReleaseLockKey = "CHANNELCENTER:NFT:RELEASE";
@Autowired
private BookProps bookProps;
@Override
public Long updateResourcePage(UpdateResourcePageVO updateResourcePageVO) {
......@@ -4215,9 +4217,30 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
JedisClusterUtils.setJsonList(DL_BOOK_SERVES_CACHE + sceneId, itemVOList, 3600 * 72);
}
}
setChannel(itemVOList);
return itemVOList;
}
private void setChannel(List<ResourcePageItemVO> itemVOList) {
if (CollUtil.isEmpty(itemVOList)) {
return;
}
itemVOList.forEach(e -> {
String resultUrl = e.getResultUrl();
if (StrUtil.isBlank(resultUrl)) {
return;
}
if (resultUrl.contains("/C")) {
String firstResultUrl = resultUrl.substring(0,resultUrl.indexOf("/C"));
String lastResultUrl = resultUrl.substring(resultUrl.indexOf("/C") + 2);
lastResultUrl = lastResultUrl.substring(lastResultUrl.indexOf("/"));
resultUrl = firstResultUrl + "/C" + BookProps.getDefaultChannelId() + lastResultUrl;
e.setResultUrl(resultUrl);
}
});
}
private void fillTaskType(List<ResourcePageItemVO> itemAppAndProductVOList) {
if (CollUtil.isEmpty(itemAppAndProductVOList)) {
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment