浏览代码

删除logo

dsx 2 年之前
父节点
当前提交
c0deef748b
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/main/java/com/fdkankan/scene/controller/SceneEditController.java

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