fix(项目设置): 创建项目时未检查TCP Mock Port有效性
--bug=1010034 --user=lyh 创建项目TCP Mock Port不报错,但是修改报错 https://www.tapd.cn/55049933/s/1103233
This commit is contained in:
parent
3e89e84bd2
commit
4ed013d455
|
@ -120,6 +120,11 @@ public class ProjectService {
|
||||||
if (projectMapper.countByExample(example) > 0) {
|
if (projectMapper.countByExample(example) > 0) {
|
||||||
MSException.throwException(Translator.get("project_name_already_exists"));
|
MSException.throwException(Translator.get("project_name_already_exists"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (project.getMockTcpPort() != null && project.getMockTcpPort().intValue() > 0) {
|
||||||
|
this.checkMockTcpPort(project.getMockTcpPort().intValue());
|
||||||
|
}
|
||||||
|
|
||||||
if (StringUtils.isBlank(project.getPlatform())) {
|
if (StringUtils.isBlank(project.getPlatform())) {
|
||||||
project.setPlatform(IssuesManagePlatform.Local.name());
|
project.setPlatform(IssuesManagePlatform.Local.name());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue