Explorar o código

修改文件上传逻辑

tianboguang %!s(int64=2) %!d(string=hai) anos
pai
achega
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 {
     public ResultData sendCallAlgorithm(@RequestBody Map<String,String> params) throws Exception {
         log.info("sendCallAlgorithm 参数为:{}",JSONObject.toJSONString(params));
         log.info("sendCallAlgorithm 参数为:{}",JSONObject.toJSONString(params));
         String filePath = params.get("filePath");
         String filePath = params.get("filePath");
-        String filePathParam = filePath;
         if(ObjectUtils.isEmpty(filePath)){
         if(ObjectUtils.isEmpty(filePath)){
             throw new BusinessException(ErrorCode.PARAM_ERROR,"filePath为空。");
             throw new BusinessException(ErrorCode.PARAM_ERROR,"filePath为空。");
         }
         }
@@ -99,7 +98,7 @@ public class SceneFileController{
         ZipUtil.unzip(filePath.concat(zipFileName),filePath);
         ZipUtil.unzip(filePath.concat(zipFileName),filePath);
 
 
         // 上传oaas
         // 上传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");
         return sceneFileBuildService.copyDataAndBuild(null,dataSource ,"V4");