lyhzzz 2 년 전
부모
커밋
8ad81f739a
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/main/java/com/fdkankan/sale/common/FilePath.java
  2. 1 1
      src/main/java/com/fdkankan/sale/service/impl/DingService.java

+ 1 - 1
src/main/java/com/fdkankan/sale/common/FilePath.java

@@ -5,5 +5,5 @@ public class FilePath {
     public static String common = "common";
     public static String file_path = "/home/backend/4dkankan_v4/sale/file/";
     public static String oss_file_path = "sale/file/%s/%s";
-    public static String oss_ding_path = "sale/file/%s/%s";
+    public static String oss_ding_path = "sale/file/%s/%s/%s";
 }

+ 1 - 1
src/main/java/com/fdkankan/sale/service/impl/DingService.java

@@ -128,7 +128,7 @@ public class DingService {
             }
             String userIds = String.join(",", userIdList);
 
-            String oaPath = String.format(FilePath.oss_ding_path, CacheUtil.dingServeName,"OA.json");
+            String oaPath = String.format(FilePath.oss_ding_path,FilePath.common, CacheUtil.dingServeName,"OA.json");
             String fileContent = fYunFileServiceInterface.getFileContent(oaPath);
             if(StringUtils.isBlank(fileContent)){
                 throw new BusinessException(ResultCode.DING_SEND_ERROR);