‘linchangsheng’ пре 5 месеци
родитељ
комит
02f82d64e8

+ 1 - 2
mall-server-api/src/main/java/com/gree/mall/manager/logic/comlist/ComListLogic.java

@@ -143,8 +143,7 @@ public class ComListLogic {
         //上传主文件到oss,并记录
         //CommonFile commonFile = commonLogic.uploadFile(file);
 
-        String url = ossUtil.getUrl(file);
-        InputStream inputStream = commonLogic.getFileInputStreamByUrl(url);
+        InputStream inputStream = commonLogic.getFileInputStreamByUrl(file);
         List<Object> objects = ExcelUtils.importExcel(inputStream);
         //拆分excel并上传oss
         List<Map<String, Object>> fileUrls = this.createExcel(objects);