From 48897e3d10652ad6ed1f790357a5839baff8de31 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 18 四月 2024 16:16:22 +0800 Subject: [PATCH] 修改返回值 --- src/main/java/com/lf/server/service/show/CadService.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/lf/server/service/show/CadService.java b/src/main/java/com/lf/server/service/show/CadService.java index 684d504..3416433 100644 --- a/src/main/java/com/lf/server/service/show/CadService.java +++ b/src/main/java/com/lf/server/service/show/CadService.java @@ -41,13 +41,13 @@ public String convert(int metaId) { MetaEntity me = metaService.selectById(metaId); if (null == me || StringUtils.isEmpty(me.getPath()) || !StaticData.DWG.equals(me.getType())) { - return null; + return ""; } String dwg = pathHelper.getConfig().getUploadPath() + File.separator + me.getPath(); File file = new File(dwg); if (!file.exists() || file.isDirectory()) { - return null; + return ""; } String[] strs = me.getPath().replace("\\", "/").split("/"); @@ -62,9 +62,12 @@ return strs[0] + "/" + outName; } - return null; + return ""; } + /** + * 璋冪敤鏍煎紡杞崲 + */ public boolean callConvert(String dwgFile, String outPath, String outName) { try { String jsonParam = "{'srcpath':'" + dwgFile + "','outpath':'" + outPath + "','outname':'" + outName + "'}"; -- Gitblit v1.9.3