lyhzzz преди 2 месеца
родител
ревизия
6df35cb912
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/fdkankan/manage_jp/controller/NoticeController.java

+ 1 - 1
src/main/java/com/fdkankan/manage_jp/controller/NoticeController.java

@@ -27,7 +27,7 @@ public class NoticeController {
     public Result notice(){
         String ossPath =  "manage/version/"+manageConfig.getActive() +"/manage-version.json";
         JSONObject jsonObject = new JSONObject();
-        if(fYunFileServiceInterface.equals(ossPath)){
+        if(fYunFileServiceInterface.fileExist(ossPath)){
             String fileContent = fYunFileServiceInterface.getFileContent(ossPath);
             jsonObject = JSONObject.parseObject(fileContent);
         }