fix(系统设置): #1006043;#1006059 解决修改系统参数设置-基本配置时报错

【【系统设置】-【基本设置】-修改并发数保存后提示500
error】https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001006043;--bug=1006059
--user=宋天阳 【系统设置】修改并发数报错 https://www.tapd.cn/55049933/s/1037885
This commit is contained in:
song-tianyang 2021-08-23 15:34:43 +08:00 committed by 刘瑞斌
parent d7249d8d7f
commit 78cf5a5c91
1 changed files with 5 additions and 3 deletions

View File

@ -340,9 +340,11 @@ public class ApiTestEnvironmentService {
tcpConfigObj.put("reUseConnection", false);
tcpConfigObj.put("nodelay", false);
tcpConfigObj.put("closeConnection", false);
if(project.getMockTcpPort() != null && project.getMockTcpPort().intValue() != 0){
tcpConfigObj.put("server", tcpSocket);
tcpConfigObj.put("port", project.getMockTcpPort().intValue());
if(project != null){
if(project.getMockTcpPort() != null && project.getMockTcpPort().intValue() != 0){
tcpConfigObj.put("server", tcpSocket);
tcpConfigObj.put("port", project.getMockTcpPort().intValue());
}
}
JSONObject object = new JSONObject();