fix(接口测试): 场景导入场景存在变引用

--user=郭雨琦
场景存在变引用
This commit is contained in:
guoyuqi 2022-03-29 20:10:56 +08:00 committed by fit2-zhao
parent fecf73f1f3
commit 827f0b7508

View File

@ -2075,6 +2075,9 @@ public class ApiAutomationService {
Set<String> userRelatedProjectIds = checkPermissionService.getUserRelatedProjectIds();
if(!userRelatedProjectIds.contains(bloBs.getProjectId())){
object.put("referenced", "Copy");
}else{
object.put("id", bloBs.getId());
object.put("resourceId", bloBs.getId());
}
}
}