diff --git a/renren-admin/src/main/java/io/renren/modules/developmentGuide/service/impl/DevelopmentGuideServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/developmentGuide/service/impl/DevelopmentGuideServiceImpl.java index 5044c6c3..ec54f4df 100644 --- a/renren-admin/src/main/java/io/renren/modules/developmentGuide/service/impl/DevelopmentGuideServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/developmentGuide/service/impl/DevelopmentGuideServiceImpl.java @@ -85,7 +85,7 @@ public class DevelopmentGuideServiceImpl implements DevelopmentGuideService { // 文件保存 uploadFile.transferTo(new File(path, fileName)); logger.info("----------------------------------文件上传成功--------------------------------------"); - return File.separator + type + File.separator + fileName; + return type + File.separator + fileName; } catch (IOException e) { logger.info("----------------------------------文件上传失败--------------------------------------"); logger.info("异常描述" + e.getMessage());