Browse Source

删除logo

dsx 2 years ago
parent
commit
c0deef748b

+ 6 - 0
src/main/java/com/fdkankan/scene/controller/SceneEditController.java

@@ -71,6 +71,12 @@ public class SceneEditController extends BaseController {
      */
     @RequestMapping(value = "/deleteOss", method = RequestMethod.POST)
     public ResultData deleteOss(@RequestParam("filePath")String filePath) throws Exception {
+        if(filePath.contains("logo-main.png")){
+            fYunFileService.deleteFile(filePath.replace("logo-main.png", "logo-main-en.png"));
+        }
+        if(filePath.contains("logo-main-en.png")){
+            fYunFileService.deleteFile(filePath.replace("logo-main-en.png", "logo-main.png"));
+        }
         fYunFileService.deleteFile(filePath);
         return ResultData.ok();
     }