提交 a47eb820 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: 重新开启链接后,老的链接无效

上级 aa76e3be
......@@ -238,7 +238,9 @@ public class PanelLinkService {
example.createCriteria().andUuidEqualTo(uuid);
List<PanelLinkMapping> mappings = panelLinkMappingMapper.selectByExample(example);
if (CollectionUtils.isEmpty(mappings)) {
DEException.throwException("link is not exist");
PanelLink panelLink = new PanelLink();
panelLink.setResourceId("error-resource-id");
return BASEURL + buildLinkParam(panelLink);
}
PanelLinkMapping mapping = mappings.get(0);
String resourceId = mapping.getResourceId();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论