Commit 50c3ccf9 by 吴迪

【新增】修改轮播图跳转链接

parent b8b55a8e
......@@ -28,6 +28,7 @@ public class TransferController {
@Autowired
private IndexCarouselManageService indexCarouselManageService;
@Autowired
private DomainListProperties domainListProperties;
@Value("${file.request.prefix}")
......@@ -116,6 +117,16 @@ public class TransferController {
if (record.getDirectpath().indexOf("News/PicNews.aspx") > -1) {
record.setDirectpath(record.getDirectpath().replaceAll("News/PicNews.aspx", "News/msg"));
}
if (record.getDirectpath().startsWith("/News/msg?Id")) {
record.setDirectpath(record.getDirectpath().replaceAll("/News/msg\\?Id", domainListProperties.getDomain() + "/News/msg?id"));
}
if (record.getDirectpath().startsWith("/News/msg")) {
record.setDirectpath(record.getDirectpath().replaceAll("/News/msg", domainListProperties.getDomain() + "/News/msg"));
}
if (record.getDirectpath().indexOf("/News/msg?Id") > -1) {
record.setDirectpath(record.getDirectpath().replaceAll("/News/msg\\?Id", "/News/msg?id"));
}
}
if (StringUtils.isNotBlank(record.getPicIndexPath()) && !record.getPicIndexPath().startsWith("http:")) {
record.setPicIndexPath(fileRequestPrefix + "img/demo/" + record.getPicIndexPath());
......
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