From 5ab2f21667f4e4d4b96846a5b8c2dbb481250dd9 Mon Sep 17 00:00:00 2001 From: chenzhihang <709011834@qq.com> Date: Mon, 1 Sep 2025 13:43:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=AC=E5=BC=80=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E8=B7=AF=E5=BE=84=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/platform/service/impl/ModelsServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ModelsServiceImpl.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ModelsServiceImpl.java index 53a2fa01..bd10f698 100644 --- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ModelsServiceImpl.java +++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ModelsServiceImpl.java @@ -1118,7 +1118,7 @@ public class ModelsServiceImpl implements ModelsService { @Override public ModelsVo getModelDetail(Integer id, String identifier, String owner, String version, Boolean isPublic) throws Exception { - String ci4sUsername = SecurityUtils.getLoginUser().getUsername();; +// String ci4sUsername = SecurityUtils.getLoginUser().getUsername(); // String ci4sUsername = isPublic ? Constant.Item_Public : SecurityUtils.getLoginUser().getUsername(); if (StringUtils.isEmpty(version)) { @@ -1126,8 +1126,8 @@ public class ModelsServiceImpl implements ModelsService { } // git pull操作,然后读取里面的文件列表,列出每个文件的大小和名称,封装成MAP - List> fileDetailsAfterGitPull = FileUtil.getFiles(localPath + ci4sUsername + "/model/" + id + "/" + identifier + "/" + version + "/model"); - Map stringObjectMap = YamlUtils.loadYamlFile(localPath + ci4sUsername + "/model/" + id + "/" + identifier + "/" + version + "/metadata/metadata.yaml"); + List> fileDetailsAfterGitPull = FileUtil.getFiles(localPath + owner + "/model/" + id + "/" + identifier + "/" + version + "/model"); + Map stringObjectMap = YamlUtils.loadYamlFile(localPath + owner + "/model/" + id + "/" + identifier + "/" + version + "/metadata/metadata.yaml"); String jsonString = JSON.toJSONString(stringObjectMap); ModelsVo modelsVo = JSON.parseObject(jsonString, ModelsVo.class);