REQ-3045: 添加校验

This commit is contained in:
yanglin 2024-10-12 16:13:28 +08:00
parent d38145ab3f
commit edebbca46d

View File

@ -126,6 +126,7 @@ public class MessageTemplateButtonV3DTO implements Serializable {
if (apiUrl == null) throw new ServiceException("接口调用地址不能为空");
} else if (RouterCategoryEnum.JUMP.equals(category)) {
if (urlConfig == null) throw new ServiceException("跳转地址不能为空");
if (!urlConfig.hasUrl()) throw new ServiceException("跳转地址不能为空");
}
}