diff --git a/app/controllers/student_works_controller.rb b/app/controllers/student_works_controller.rb index 63dd509fe..39401d079 100644 --- a/app/controllers/student_works_controller.rb +++ b/app/controllers/student_works_controller.rb @@ -494,7 +494,7 @@ class StudentWorksController < ApplicationController # 删除实训作品评阅 def destroy_work_comment ActiveRecord::Base.transaction do - tip_exception("visible_comment参数有误") if params[:visible_comment].blank? + tip_exception("visible_comment参数有误") if params[:visible_comment].nil? comment = @work.shixun_work_comments.find_by!(id: params[:comment_id]) params[:visible_comment] ? comment.comment = nil : comment.hidden_comment = nil