perf: 动态配置访问路径前缀

This commit is contained in:
fit2cloud-chenyw 2024-05-22 17:51:56 +08:00
parent ce668c3d2d
commit 7654fb54ca
2 changed files with 1 additions and 2 deletions

View File

@ -281,7 +281,7 @@ public class PanelLinkService {
List<PanelLinkMapping> mappings = panelLinkMappingMapper.selectByExample(example);
PanelLinkMapping mapping = mappings.get(0);
String uuid = mapping.getUuid();
return contextPath + SHORT_URL_PREFIX + (StringUtils.isBlank(uuid) ? mapping.getId() : uuid);
return (StringUtils.isNotBlank(contextPath) ? contextPath : "") + SHORT_URL_PREFIX + (StringUtils.isBlank(uuid) ? mapping.getId() : uuid);
}
public String saveTicket(TicketCreator creator) {

View File

@ -1 +0,0 @@
server.servlet.context-path=