REQ-3045: 添加校验
This commit is contained in:
parent
d38145ab3f
commit
edebbca46d
@ -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("跳转地址不能为空");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user