Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_cs
hjm 5 years ago
commit a945555de2

@ -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

Loading…
Cancel
Save