|
|
|
@@ -1412,7 +1412,7 @@ public class ModelsServiceImpl implements ModelsService { |
|
|
|
LoginUser loginUser = SecurityUtils.getLoginUser(); |
|
|
|
String ci4sUsername = loginUser.getUsername(); |
|
|
|
String repositoryName = modelsVo.getIdentifier(); |
|
|
|
String branchName = modelsVo.getVersion(); |
|
|
|
String branchName = StrUtil.toString(branch.get("name")); |
|
|
|
String relatePath = ci4sUsername + "/model/" + modelsVo.getId() + "/" + repositoryName + "/" + branchName; |
|
|
|
String rootPath = localPath + relatePath; |
|
|
|
String metaPath = rootPath + "/metadata"; |
|
|
|
@@ -1421,7 +1421,7 @@ public class ModelsServiceImpl implements ModelsService { |
|
|
|
Map projectDetail = gitService.getProjectDetail(modelsVo.getOwner(), modelsVo.getIdentifier(), token); |
|
|
|
Map<String, Object> param = new HashMap<>(); |
|
|
|
param.put("id", projectDetail.get("project_id")); |
|
|
|
param.put("is_public", true); |
|
|
|
param.put("private", false); |
|
|
|
gitService.updateProjectDetail(param, modelsVo.getOwner(), modelsVo.getIdentifier(), token); |
|
|
|
} |
|
|
|
|
|
|
|
|