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);
         }