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