Przeglądaj źródła

修改文件上传逻辑

tianboguang 2 lat temu
rodzic
commit
e9bf61d117

+ 1 - 2
src/main/java/com/fdkankan/contro/controller/SceneFileController.java

@@ -63,7 +63,6 @@ public class SceneFileController{
     public ResultData sendCallAlgorithm(@RequestBody Map<String,String> params) throws Exception {
         log.info("sendCallAlgorithm 参数为:{}",JSONObject.toJSONString(params));
         String filePath = params.get("filePath");
-        String filePathParam = filePath;
         if(ObjectUtils.isEmpty(filePath)){
             throw new BusinessException(ErrorCode.PARAM_ERROR,"filePath为空。");
         }
@@ -99,7 +98,7 @@ public class SceneFileController{
         ZipUtil.unzip(filePath.concat(zipFileName),filePath);
 
         // 上传oaas
-        fYunFileService.uploadFileByCommand(filePathParam.concat(folderName), ConstantFilePath.OSS_PREFIX.concat(subFolder));
+        fYunFileService.uploadFileByCommand(filePath.concat(folderName), ConstantFilePath.OSS_PREFIX.concat(subFolder));
 
         // 通知计算
         return sceneFileBuildService.copyDataAndBuild(null,dataSource ,"V4");