fix(接口测试): 更改mock环境初始化时的地址,添加上api服务域名

更改mock环境初始化时的地址,添加上api服务域名
This commit is contained in:
song-tianyang 2022-10-10 14:07:56 +08:00
parent ef3a4bb66f
commit 7356d9237b
1 changed files with 2 additions and 2 deletions

View File

@ -558,7 +558,7 @@ public class BaseEnvironmentService extends NodeTreeService<ApiModuleDTO> {
}
String projectSocket = String.valueOf(obj.get("socket"));
if (!StringUtils.contains(projectSocket, "/mock/" + projectNumber)) {
if (!StringUtils.contains(projectSocket, "/api/mock/" + projectNumber)) {
needUpdate = true;
break;
}
@ -657,7 +657,7 @@ public class BaseEnvironmentService extends NodeTreeService<ApiModuleDTO> {
JSONObject httpItem = new JSONObject();
httpItem.put("id", UUID.randomUUID().toString());
httpItem.put("type", "NONE");
httpItem.put("socket", socket + "/mock/" + projectNumber);
httpItem.put("socket", socket + "/api/mock/" + projectNumber);
httpItem.put("protocol", protocal);
List<Map<String, Object>> protocolVariablesArr = new LinkedList<>();
Map<String, Object> protocolMap = new HashMap<>();