From 141420dbb37208e1b184fa3541fd5a5895bb3e98 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Wed, 16 Oct 2019 18:36:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=B5=84=E6=BA=90=E7=9A=84?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/attachments_controller.rb | 1 + app/views/attachments/destroy.json.jbuilder | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 app/views/attachments/destroy.json.jbuilder diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index df74cf737..258ab9d83 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -83,6 +83,7 @@ class AttachmentsController < ApplicationController @file.destroy! delete_file(@file_path) + normal_status("删除成功") rescue Exception => e uid_logger_error(e.message) tip_exception(e.message) diff --git a/app/views/attachments/destroy.json.jbuilder b/app/views/attachments/destroy.json.jbuilder deleted file mode 100644 index cc73869d9..000000000 --- a/app/views/attachments/destroy.json.jbuilder +++ /dev/null @@ -1 +0,0 @@ -json.partial! "commons/success"